HELLO WORLD CODE IN C, C++, JAVA, PYTHON.

Greetings Viewers,
In this post we will be doing the most famous and most basic program that a programmer learns during its early practices i.e. program to print the "Hello World".

We will be learning this program in four different programming languages C, C++, Java and Python.
 
So let's get started.

C


 #include<stdio.h>
 int main()
 {
    printf("Hello World");
	return 0;
 }
            

Output for C

C++


#include<iostream>
using namespace std;

int main()
{
    cout<<"Hello World";
	return 0;
}
            

Output for C++

JAVA


package com.company;

public class Main
{
public static void main(String[] args)
  {
     //Type your code here
     System.out.println("Hello Coders");	
  }
}

Output for JAVA

PYTHON


 print("Hello World!")
Output for PYTHON

//ENJOY CODING\\

Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post