python3.For x series:
print("Hello World!")
_____________________
python2.For x series:
print "Hello World!"
_____________________
For java:
import java.util.*;
public class Main{
public static void main(String[] args) throws Exception {
System.out.println("Hello World!");
}
}
_____________________
For PHP:
<?php
echo "Hello World!";
?>
_____________________
For Ruby:
puts "Hello World!";
Or
print "Hello World!";
_____________________
For Go:
package main
import "fmt"
func main(){
fmt.Println("Hello World!")
}
_____________________
For javascript:
process.stdin.resume();
process.stdin.setEncoding('utf8');
var hello = "Hello World!";
console.log(hello);
Or
console.log("Hello World!");
_____________________
C#in the case of:
public class Hello{
public static void Main(){
System.Console.WriteLine("Hello World!");
}
}
_____________________
For Swift:
print("Hello World!")
_____________________
For R:
cat("Hello World!")
_____________________
For C:
#include <stdio.h>
int main(void){
printf("Hello World!");
}
_____________________
C#in the case of:
public class Hello{
public static void Main(){
System.Console.WriteLine("Hello World!");
}
}
_____________________
C++in the case of:
#include <iostream>
using namespace std;
int main(void){
printf("Hello World!");
return 0;
}
_____________________
For lua:
print("Hello World!")
_____________________
For Cobol:
IDENTIFICATION DIVISION.
program-id. Hello.
procedure division.
display "Hello World!".
_____________________
For Elixir:
IO.puts "Hello World!"
_____________________
For Haskell:
main = putStrLn "Hello World!"
_____________________
Recommended Posts