Skip to main content

Hello World program in different different languages

C:

#include<stdio.h>

int main(){

    printf("Hello World\n");

    return 0;

}

 

C++:

#include<iostream>

using namespace std;

int main(){

    cout<<"Hello World"<<endl;

    return 0;

}

 

Python:

print("Hello World\n")

 

Node JS:

console.log("Hello World");

 

Java Script:

document.write("Hello World");

 

Objective C:

#import <Foundation/Foundation.h>

int main(int argc, const char* argv[]){

    @autoreleasepool{

        NSLog(@"Hello World");

    }

     0;

}


JAVA:

class HelloWorld{

    public static void main(String[] args){

        System.out.println("Hello World");

    }

}


BASH:

echo "Hello World"



Comments

Popular Posts

Types of operating systems

Today there are lot of operating systems in the internet but actually they are only based on these main operating systems. What we see on internet is that windows is an OS, Linux is an OS but actually it is not really true. These are true only in simple understanding but when we explore computers more then we see there are lot of types of operating systems available in the market. These are written below...... Batch Operating System Multi-programming OS. Time-sharing or multitasking operating systems Distributed operating System Network operating System Real Time operating System Hard real--time systems Soft real--time systems Batch operating system: These operating system can not interact directly with the computer. Batch processing is a technique in which an Operating System collects the programs and data together in a batch before processing starts.   Multi-programming OS: These type of OS are able to run multiple jobs simultaneously in the memory. For it, memory is considered as a