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

No comments: