Sunday 5 May 2013

Program In C++ to Add Two Numbers

Here's The Code In C++ To Add Two Number

#include<iostream.h>
#include<conio.h>
void main()
clrscr();
int a,b,c;
cout<<"Enter two numbers to add\n";
cin>>a>>b;
c = a+b;
cout<<"Sum of entered numbers = " << c << endl;
getch();
}

No comments:

Post a Comment