Giter Site home page Giter Site logo

hello-world-s's Introduction

Different hello world programs

View contributors.md file before contributing.

  • python

print('Hello World!')
  • c

#include <stdio.h>
void main() {
   printf("Hello World!");
}
  • c++

#include <iostream>
using namespace std;
int main()
{
    cout<<"Hello World!";

    return 0;
}
  • Javascript

console.log("Hello World!");
  • Java

class helloWorld {
public static void main() {
System.out.println('Hello World!')
 }
}
  • HTML

<h1>Hello World!<h1>
  • R

print("Hello World!")
  • Lua

print("Hello World!")
  • dart

void main() {
  print('Hello World!');
}
  • kotlin

fun main() {
    println("Hello World!")
}
  • golang

package main
import "fmt"
func main() {
    fmt.Println("Hello World!")
}
  • PHP

<?php
  echo 'Hello World!';
?>
  • Bash

echo "Hello World"
  • Ruby

# Hello World in Ruby
puts "Hello World!"
  • Matlab

disp('Hello World!')
  • C#

using System;
class Program
{
    public static void Main(string[] args)
    {
        Console.WriteLine("Hello World!");
    }
}
  • Haskell

main = putStrLn "Hello World!"
  • Scala

object Solution
{
  def main(args: Array[String])
    {
      println("Hello World!")
    }
}
  • Rust

fn main() {
    println!("Hello World");
}
  • Pascal

Program HelloWorld(output);
begin
  writeln('Hello World!');
end.
  • Prolog

main:-
        process,
        halt.
process:-
        write('Hello World').
:- main.
  • BrainFuck

>++++++++[<+++++++++>-]<.>++++[<+++++++>-]<+.+++++++..+++.>>++++++[<+++++++>-]<+
+.------------.>++++++[<+++++++++>-]<+.<.+++.------.--------.>>>++++[<++++++++>-
]<+.
  • Swift

import swift
print("Hello World!")
  • Perl

print "Hello World!";
  • Cobol

program-id. hello.
    procedure division.
        display "Hello World!".
        stop run.
  • Julia

println(“Hello World”)
  • CoffeeScript

console.logHello World!
  • VB.net

Live Demo

Imports System
Module Module1
   Sub Main()
      Console.WriteLine("Hello World")
      Console.ReadKey()
   End Sub
End Module
  • Cobra


class Hello

    def main
        print 'Hello World.'
  • PL/SQL

BEGIN
dbms_output.put_line (‘Hello World..');
END;
/
  • Basic

PRINT "Hello World!"
  • GO

import "fmt"

func main() {

    fmt.Println("!... Hello World ...!")
  • Dart

void main()
{
  print("-----Hello World-----");
}
  • Rust

fn main() {
    println!("---Hello World---");
}
  • Matlab

disp('__Hello World!!__')
  • Delphi

program HelloWorld;
begin
  Writeln('Hello, world!');
end.
  • jQuery


$("body").append("Hello world!");

  • Logo


print [Hello, world!]

  • C#

namespace HelloWorld
{
    class Hello {
        static void Main(string[] args)
        {
            System.Console.WriteLine("Hello World!");
        }
    }
}
  • Javascript

document.write("Hello World!");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.