This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream.h> | |
#include<stdlib.h> | |
void main() | |
{ | |
int a,b,sum; | |
cout<<"Enter the 1st number:\t"<<endl; | |
cin>>a; | |
cout<<"Enter the 2nd number:\t"<<endl; | |
cin>>b; | |
sum=a+b; | |
cout<<"The sum of 2 value is:\t"<<sum<<endl; | |
system("pause"); | |
} |
Output:
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.