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

A Digital Computer

 A digital computer is a digital system that performs various computational tasks. The word "Digital" implies that the information in the computer is represented by variables that take a limited number of discrete values. These values are processed internally by components that can maintain a limited number of discrete states. These discrete values are taken by the decimal digits 0 to 9.  The first electronic digital systems was developed at 1940s late, it was primarily only used for some numerical computations.  As we all know a digital computer uses binary number system & it can only understand a binary number. And a binary number has only 2 digits 0 & 1 . Let me tell you one more interesting thing is that a binary digit is called "bit" here. That means if we use 0 it means its a bit, and vise versa.  In a digital computer all information is only represented in group of bits. After using various programming techniques & some algorithms, these grou...

Basic Elements of Communication System(Networking)

A Communication is the process of transferring messages from one point to another. It is a very vital process in a network. When two networks are connected with each others they have to share data to each others so this process of communication system has three basic elements which are as follows - 1. A sender (source), which creates the message to be transmitted. 2. A medium, which carries the message, 3. A receiver (sink), which receives the message. Data communication is the function of transmitting data from one point to another. In this case, the sender and receiver are normally machines, in particular, computer devices (computers, terminals, peripheral devices like printers, plotters, disks, etc), and the transmission medium may be telephone lines, microwave links, satellite links, etc. However, the messages that are transmitted are only in data form, but not in voice conversations form. Hence, the electronic systems, which transfer data from one point to another, are called dat...

How to become a successful hacker

T he whole world is going to transform in Internet and internet related things, & still privacy is one of the most issued topic in market till now. So basically market needs a perfect hacker. As we all know nothing is safe on internet millions TB of data is also growing on internet day by day but along with this the efficient Cyber Security Experts (WHITE HAT HACKERS) counts are very few. So the market needs perfect Cyber Security Specialist to make company data safe from any unauthorized access and to be ready for any cyber attack, so demand are too increasing day by day.         If we talk about Hackers then we both know that hackers are also growing in the world day by day as we all know, it does not matter here what kind of hackers because where is god, devil is also there. And if we talk clearly then we know that Black Hat & White Hat both growing day by day. So if you want to become a successful hacker you should apply at least these p...

A technical preview of an Operating System

Operating System (OS): An Operating system consists of a set of programs which controls, co-ordinates and supervises the activities of the various components of a computer system. Its function is to link between the computer hardware and the user. An operating system is a software or a series of programmes, which performs various types of functions in order to manage and organize file so". Objectives:  There are lot of objectives of an operating system, actually it covers the birth of a perfect operating system. A user is just like a wanting animal they just want everything. But as a developer we are just tying to make our software more & more better as per user requests. These are some main objectives ------ To describe the basic organization of computer systems. To provide a grand tour of the major components of operating systems. Provide more convenient environment for users. Provide maximum utilized performance to users as per hardware existance. Computer Startup: When a c...

PROGRAMMING LANGUAGES

  Today a programming language is very essential thing in technology market, everything is going to transform in digital world. We handle these digital things with lot of hardware and using programming language. Currently there are lot of programming languages arrived in market like Python, Java, Perl and many more. So today we will talk about what is programming language & how its works?   A programming language is the way to talk to a computer machine, generally we can not directly go to the computer and we can not say to the computer to do a specific task, Because a computer only understand the binary data . We need to program it or we can say we need to talk to the computer in computer language to give then computer will understand what we want with them. Generally we talk in different - different languages, so we can also communicate in different - different languages with a computer. Sometimes computer languages goes to complicated for a human being bu...