Hello, World! This is my first blog post on #hashnode, so thought of saying "Hello World!" in some of the most commonly used programming languages of 2021. (Comment which programming language is your favorite).
1. Python:
print("Hello world!")
2. JavaScript:
document.write('Hello world!');
3. Go-lang:
package main
import "fmt"
// Main function
func main() {
fmt.Println("Hello World!")
}
4. Java:
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
5. C#:
namespace HelloWorld
{
class Hello {
static void Main(string[] args)
{
System.Console.WriteLine("Hello World!");
}
}
}
6. C:
#include
int main(void)
{
puts("Hello World!");
}
7. C++:
#include
int main()
{
std::cout << "Hello World!
";
return 0;
}
8. HTML:
<html>
<head>
</head>
<body>
<h1>Hello World!<h1>
</body>
</html>
9. Bash:
echo "Hello World!"
10. R:
cat('Hello World!')
Happy Coding ;).