Antyss77 / hello-world

This is a simple project that displays "Hello World" in different programming languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello World in different programming languages

This is a simple project that displays "Hello World" in different programming languages.

List of programming languages

  • Java
  • Python
  • JavaScript
  • Ruby
  • C#
  • PHP

How to Contribute

  1. Fork this repository
  2. Create a new branch (git checkout -b new-language)
  3. Add your "Hello World" program in a new directory with the name of the programming language (mkdir new-language)
  4. Add a link to your program in the list above
  5. Commit your changes (git commit -am 'Add new-language')
  6. Push to the branch (git push origin new-language)
  7. Create a new Pull Request
  8. Wait for review and merge

Java

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

Python

print("Hello, World!")

Javascript

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

Ruby

puts "Hello, World!"

C#

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

PHP

<?php
echo "Hello, World!";
?>