DEV Community

Gurmehar Singh Khalsa
Gurmehar Singh Khalsa

Posted on

Hello World !

Python

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

PHP

<?php echo "Hello World!"; ?>
Enter fullscreen mode Exit fullscreen mode

JavaScript

document.write('Hello World!');
Enter fullscreen mode Exit fullscreen mode

TypeScript

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

C

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

C

#include 

int main(void)
{
    puts("Hello World!");
}
Enter fullscreen mode Exit fullscreen mode

C++

#include 

int main()
{
    std::cout << "Hello World!
";
    return 0;
}
Enter fullscreen mode Exit fullscreen mode

Java

class HelloWorldApp {
    public static void main(String[] args) {
        System.out.println("Hello World!"); // Prints the string to the console.
    }
}
Enter fullscreen mode Exit fullscreen mode

Bash

echo "Hello World!"
Enter fullscreen mode Exit fullscreen mode

MatLab

disp('Hello World!')
Enter fullscreen mode Exit fullscreen mode

R

cat('Hello World!
')
Enter fullscreen mode Exit fullscreen mode

Ruby

puts "Hello World!"
Enter fullscreen mode Exit fullscreen mode

Swift

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

Assembly

    global  _main
    extern  _printf

    section .text
_main:
    push    message
    call    _printf
    add     esp, 4
    ret
message:
    db  'Hello, World', 10, 0
Enter fullscreen mode Exit fullscreen mode

Go

package main

import "fmt"

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

Objective-C

#import <Foundation/Foundation.h>

int main() {
    @autoreleasepool {
        NSLog(@"Hello, World!");
    }
}
Enter fullscreen mode Exit fullscreen mode

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)

Collapse
 
pris_stratton profile image
pris stratton

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 πŸ˜ƒ

Collapse
 
thesmilingsikh profile image
Gurmehar Singh Khalsa

NiceπŸ˜€

Java is amazing and with a lot of pathways, just an ignition of interest makes the leap towards the programming Success.