Hello world program in c++ || basic program || C++

In this, we are going to see how to print Hello world using C++ program.


The Code given below can be used in Turbo C++ Compiler.

#include<iostream.h>
#include<conio.h>

void main()
{
    clrscr();
    cout<<"hello world";
    getch();
}
    
    

The Code given below can be used in g++/gcc Compiler.

#include<iostream>
using namespace std;

int main()
{
    cout<<"hello world";
    return 0;
}
    
    

#ENJOY CODING


1 Comments

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

Post a Comment

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

Previous Post Next Post