Starter Program For C And C++ Users
Hello World Welcome Back To My World Of Programming.
So If You Wanna Learn Programming Language Then You Firstly Need To Learn To Print "Hello World",
Even If You Start With JAVA, Python, PHP And Any Other Programming Language You Firstly Have To print Hello World Successfully.
I Am Going To Show You How To Print Hello World Using C Or C++.
Before Starting Please Note "//" This "Double Slash" Is Called Comment It Is Basicially Used To Show The Programmer What You Done With Code So DON'T COPY COMMENTS //
So Lets Start:
Firstly C
1. Program To Print Hello World Using C Programming Language.
#include<stdio.h> //This Is Called header File
#include<conio,h> //For Turbo C/C++ Compiler Apps With Blue Screen.
void main() //Program Is A Void Type Program
{ //Main Program Starts Here
clrscr(); // Used To Clear Previous Output Of Program
printf("Hello World"); //Main printing
getch(); //Used To Hold The Program
} //Main Program Ends Here
2. Program To Print Hello World Using C++ Programming Language
#include<iostream.h> //This Is Called header File
#include<conio.h> //For Turbo C/C++ Compiler Apps With Blue Screen.
void main() //Program Is A Void Type Program
{ //Main Program Starts Here
clrscr(); // Used To Clear Previous Output Of Program
cout<<"Hello World"; //Main printing
getch(); //Used To Hold The Program
} //Main Program Ends Here
Output Of Both The Program Will Be Same
Hello World.
Just Try It And Then Step Forwards Towards Programming World
Thanks
So If You Wanna Learn Programming Language Then You Firstly Need To Learn To Print "Hello World",
Even If You Start With JAVA, Python, PHP And Any Other Programming Language You Firstly Have To print Hello World Successfully.
I Am Going To Show You How To Print Hello World Using C Or C++.
Before Starting Please Note "//" This "Double Slash" Is Called Comment It Is Basicially Used To Show The Programmer What You Done With Code So DON'T COPY COMMENTS //
So Lets Start:
Firstly C
1. Program To Print Hello World Using C Programming Language.
#include<stdio.h> //This Is Called header File
#include<conio,h> //For Turbo C/C++ Compiler Apps With Blue Screen.
void main() //Program Is A Void Type Program
{ //Main Program Starts Here
clrscr(); // Used To Clear Previous Output Of Program
printf("Hello World"); //Main printing
getch(); //Used To Hold The Program
} //Main Program Ends Here
2. Program To Print Hello World Using C++ Programming Language
#include<iostream.h> //This Is Called header File
#include<conio.h> //For Turbo C/C++ Compiler Apps With Blue Screen.
void main() //Program Is A Void Type Program
{ //Main Program Starts Here
clrscr(); // Used To Clear Previous Output Of Program
cout<<"Hello World"; //Main printing
getch(); //Used To Hold The Program
} //Main Program Ends Here
Output Of Both The Program Will Be Same
Hello World.
Just Try It And Then Step Forwards Towards Programming World
Thanks
Comments
Post a Comment