Hello World

 Python


print("Hello, World!")




 
#include <stdio.h>

int main() {
    // Write C code here
    printf("Hello, World!");

    return 0;
}


C#



 

using System;

public class HelloWorld
{
    public static void Main(string[] args)
    {
        Console.WriteLine ("Hello, World!");
    }
}



C++


 
#include <iostream>

int main() {
    // Write C++ code here
    std::cout << "Hello, World!";

    return 0;
}



GO



// Print "Hello, World!" message

package main
import "fmt"

func main() {
  fmt.Println("Hello, World!")
}


HTML



 
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>NextLeap HTML Editor</title>
</head>

<body>
  <h1>
    Hello World!
  </h1>
  <p id="subtitle"></p> <!-- this will be filled in from the js file -->
</body>

</html>




Java



public class Main {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}


JavaScript


console.log("Hello, World!");


Kotlin



fun main(args: Array<String>) {
    println("Hello, World!")
}


Perl


print "Hello, World!";


PHP


<?php
 

echo "Hello, World!";
?>



Prolog


:- initialization(main).
main :- write('Hello, World!').


R



message <-"Hello, World!"
print(message)


Scala



object Main {
def main(args: Array[String]): Unit = {
println("Hello, World!")
}
}


Swift


print("Hello, World!")





Comments