Skip to content

Giftyshaju02/hello-world-s

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

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!");
        }
    }
}
  • c

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

#include<iostream>
void main()
{
  cout<<"HELLO WORLD !!";
  return 0;
}
  • Python

print "HELLO WORLD !!"
  • Lua

print("HELLO WORLD !!")

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published