DEV Community

Cover image for Hello, World! in 10 different languages πŸ”₯πŸ”₯
Rohidul Islam
Rohidul Islam

Posted on

Hello, World! in 10 different languages πŸ”₯πŸ”₯

1. Python

print("Hello World!")
Enter fullscreen mode Exit fullscreen mode

2. Java

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}
Enter fullscreen mode Exit fullscreen mode

3. JavaScript

console.log("Hello, World!")
Enter fullscreen mode Exit fullscreen mode

4. C Sharp

using System;
class Hello {         
    static void Main(string[] args)
    {
        Console.WriteLine("Hello, World!");
    }
}
Enter fullscreen mode Exit fullscreen mode

5. Swift

print("Hello, World!")
Enter fullscreen mode Exit fullscreen mode

6. Dart

void main() {
  print("Hello, World!");
}
Enter fullscreen mode Exit fullscreen mode

7. Go

package main
import "fmt"
func main() {
    fmt.Println("Hello, World!")
}
Enter fullscreen mode Exit fullscreen mode

8. C++

#include <iostream>
using namespace std;
int main()
{
    cout<<"Hello, World!";
    return 0;
}
Enter fullscreen mode Exit fullscreen mode

9. C

#include <stdio.h>
int main(void)
{
    printf("Hello, World!");
}
Enter fullscreen mode Exit fullscreen mode

10. Kotlin

fun main(args: Array<String>) {
    println("Hello, World!")
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)