Showing posts with label cpp. Show all posts
Showing posts with label cpp. Show all posts

Tuesday, April 30, 2013

3rd Program

This is a simple program of adding two numbers which are entered by the user

#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c;
cout<<"Enter the first number ";
cin>>a;
cout<<"Enter the second number ";
cin>>b;
c=a+b;
cout<<"Sum = "<<c;
getch();
}


Click here to download

Thursday, February 28, 2013

2nd Program

This is a Simple program to add two fixed numbers


#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c;
a=5;
b=44;
c=a+b;
cout<<"Sum = "<<c;
getch();
}


Click here to download

1st program (Display Hello World)

This program helps to display a line in C++



#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
cout<<"Hello World this is my first C++ Program";
getch();
}

Link to download the Compiled program