“Hello World” in 10 Languages

Hello World 👋🌍

Let’s go through the “Hello World” syntax in 10 languages 🐱‍💻.

Feel free to comment ✍️ your first 🥇 “Hello World” language.

1. Java

class Main {
public static void main(String[] args){
System.out.println(“Hello World”);…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Rakesh KR

Hello World 👋🌍

Let's go through the "Hello World" syntax in 10 languages 🐱‍💻.

Feel free to comment ✍️ your first 🥇 "Hello World" language.

1. Java

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

2. C

#include<stdio.h>
int main(){
printf("Hello World");
return 0;
}

3. C++

#include<iostream>
int main (){
  std::cout << "Hello World";
  return 0;
}

4. C#

public class Hello{
  public static void Main(String[] args){
    System.Console.WriteLine("Hello World");
  }
}

5. Python

print("Hello World")

6. JS

console.log("Hello World");

alert("Hello World");

document.write("Hello World");

7. GO

package main
import "fmt"

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

8. Kotlin

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

9. PHP

<?php
echo "Hello World";
?>

10. Swift

import Swift
print("Hello World")


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Rakesh KR


Print Share Comment Cite Upload Translate Updates
APA

Rakesh KR | Sciencx (2022-12-05T14:44:40+00:00) “Hello World” in 10 Languages. Retrieved from https://www.scien.cx/2022/12/05/hello-world-in-10-languages/

MLA
" » “Hello World” in 10 Languages." Rakesh KR | Sciencx - Monday December 5, 2022, https://www.scien.cx/2022/12/05/hello-world-in-10-languages/
HARVARD
Rakesh KR | Sciencx Monday December 5, 2022 » “Hello World” in 10 Languages., viewed ,<https://www.scien.cx/2022/12/05/hello-world-in-10-languages/>
VANCOUVER
Rakesh KR | Sciencx - » “Hello World” in 10 Languages. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/12/05/hello-world-in-10-languages/
CHICAGO
" » “Hello World” in 10 Languages." Rakesh KR | Sciencx - Accessed . https://www.scien.cx/2022/12/05/hello-world-in-10-languages/
IEEE
" » “Hello World” in 10 Languages." Rakesh KR | Sciencx [Online]. Available: https://www.scien.cx/2022/12/05/hello-world-in-10-languages/. [Accessed: ]
rf:citation
» “Hello World” in 10 Languages | Rakesh KR | Sciencx | https://www.scien.cx/2022/12/05/hello-world-in-10-languages/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.