SimpleDao

Python

  1. #!/usr/bin/python3
  2. print("Hello World!")

Golang

  1. package main
  2. import "fmt"
  3. func main() {
  4. fmt.Println("Hello World!")
  5. }

Java

  1. package com.testmy.demo;
  2. public class HelloWorld {
  3. public static void main(String[] args) {
  4. System.out.println("Hello World!");
  5. }
  6. }

Kotlin

  1. fun main(args: Array<String>) {
  2. println("Hello World!")
  3. }

Scala

  1. object HelloWorld {
  2. def main(args: Array[String]): Unit = {
  3. println("Hello world!")
  4. }
  5. }

C#

  1. using system;
  2. namespace HelloWorld
  3. {
  4. class programe
  5. {
  6. static void main(String[] args)
  7. {
  8. Console.WriteLine("Hello World!");
  9. }
  10. }
  11. }

C++

  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. cout << "Hello, world!" << endl;
  6. return 0;
  7. }

C

  1. #include <stdio.h>
  2. int main(){
  3. printf("Hello World!\n");
  4. return 0;
  5. }

Html

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Hello World</title>
  6. </head>
  7. <body>
  8. Hello World
  9. </body>
  10. </html>

Javascript

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

Php

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <?php
  5. echo "Hello World!";
  6. ?>
  7. </body>
  8. </html>

Ruby

  1. #!/usr/bin/ruby
  2. puts "Hello World!";

Perl

  1. #!/usr/bin/perl
  2. print "Hello World!\n";

Lua

  1. print("Hello World!")