Python
print('Hello World!')
PHP
<?php echo "Hello World!"; ?>
JavaScript
document.write('Hello World!');
TypeScript
console.log("Hello World!");
C
using System;
class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
C
#include
int main(void)
{
puts("Hello World!");
}
C++
#include
int main()
{
std::cout << "Hello World!
";
return 0;
}
Java
class HelloWorldApp {
public static void main(String[] args) {
System.out.println("Hello World!"); // Prints the string to the console.
}
}
Bash
echo "Hello World!"
MatLab
disp('Hello World!')
R
cat('Hello World!
')
Ruby
puts "Hello World!"
Swift
println("Hello World!")
Assembly
global _main
extern _printf
section .text
_main:
push message
call _printf
add esp, 4
ret
message:
db 'Hello, World', 10, 0
Go
package main
import "fmt"
func main() {
fmt.Println("Hello, World")
}
Objective-C
#import <Foundation/Foundation.h>
int main() {
@autoreleasepool {
NSLog(@"Hello, World!");
}
}
That's all for my First Post !
Hope, you enjoyed experiencing Greetings from the World of programming.
I love the way YOU Smileπ
Top comments (2)
Hehe π
The first time I wrote out that Java code in Uni in about 2001 I thought this is like a foreign language. I think a lot of people never made it much further than the first semester as they got bored but I loved it π
Niceπ
Java is amazing and with a lot of pathways, just an ignition of interest makes the leap towards the programming Success.