Python
#!/usr/bin/python3
print("Hello World!")
Golang
package main
import "fmt"
func main() {
fmt.Println("Hello World!")
}
Java
package com.testmy.demo;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
Kotlin
fun main(args: Array<String>) {
println("Hello World!")
}
Scala
object HelloWorld {
def main(args: Array[String]): Unit = {
println("Hello world!")
}
}
C#
using system;
namespace HelloWorld
{
class programe
{
static void main(String[] args)
{
Console.WriteLine("Hello World!");
}
}
}
C++
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, world!" << endl;
return 0;
}
C
#include <stdio.h>
int main(){
printf("Hello World!\n");
return 0;
}
Html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World</title>
</head>
<body>
Hello World
</body>
</html>
Javascript
console.log("Hello World!");
Php
<!DOCTYPE html>
<html>
<body>
<?php
echo "Hello World!";
?>
</body>
</html>
Ruby
#!/usr/bin/ruby
puts "Hello World!";
Perl
#!/usr/bin/perl
print "Hello World!\n";
Lua
print("Hello World!")