KR Code Corner
Wednesday, 20 May 2015
How to add 2 numbers in C++
#include<conio.h>
#include<iostream.h>
void main()
{
clrscr();
int a,b,c;
cout<<"Enter The Value For Adding\n";
cin>>a>>b;
c = a + b;
cout<<" Answer = "<<c;
getch();
}
Coding Format
Output Format
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment