Print "Hello world" in different languages

Here is a selection of programming languages that have a place in the programming hall of fame. They’re all either used today or have contributed something to the art of computer languages.

C:

printf("Hello World");

C++:

cout << "Hello World";

C#:

Console.WriteLine("Hello World")

Python:

print("Hello World")

Java:

System.out.println("Hello World");

PHP:

<?php echo "Hello World";

Javascript:

console.log("Hello World!");

GO:

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

Kotlin:

fun main() {
    println("Hello World")
}

Ruby:

puts 'Hello World'

Node Js:

console.log("Hello World!");

Type Script:

console.log("Hello World");

Power Shell:

Write-Host "Hello, World!"
Previous Article

Alternate 1s And 0s

Next Article

For Loop in different programming languages

Write a Comment

Leave a Comment

Your email address will not be published. Required fields are marked *