Greetings, fellow coding enthusiasts!
Today, we embark on an exciting adventure through the world of programming languages. Get ready to unleash “Hello World” in some of the most popular programming languages, from the battle-tested C to the modern marvels of Swift and Kotlin.
Whether you’re a seasoned developer or just starting your coding journey, this list of “Hello World” in different programming languages with definitely excite you.
C
#include <stdio.h>
int main() {
printf("Hello World");
return 0;
}
Python
print("Hello World")
JavaScript
console.log("Hello World");
Ruby
puts "Hello World"
C#
using System;
class HelloWorld {
static void Main() {
Console.WriteLine("Hello World");
}
}
Java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
Go
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}
Kotlin
fun main() {
println("Hello World")
}
PHP
<?php
echo "Hello World";
?>
Swift
import Swift
print("Hello World")
Rust
fn main() {
println!("Hello World");
}
Typescript
console.log("Hello World");
R
print("Hello World')
Matlab
disp('Hello World")
Perl
print "Hello World\n";
Scala
object HelloWorld {
def main(args: Array[String]) {
println("Hello World")
}
}
Lua
print("Hello World")
Dart
void main() {
print("Hello World");
}
HTML
<!DOCTYPE html>
<html>
<body>
<h1>Hello World</h1>
</body>
</html>
And that’s it! Hello World in 20 programming languages. From the timeless elegance of C to the modern marvels like Swift and Kotlin, each language brings its unique flair and functionality to the vast coding landscape.
Each programming language opens doors to endless possibilities, allowing you to create powerful applications, websites, and software. So, embrace your newfound knowledge, experiment with these languages, and let your coding adventure flourish.