Solution
In C++:
#include<iostream>
using
namespace std ;
int main () {
int
A , B , C ;
cout <<
"Enter first number:" << endl ;;
cin >> A ;
cout <<
"Enter second number:" << endl ;;
cin >> B ;
C = A + B ;
cout <<
"Sum of " << A << " and " << B << " = " << C << endl ;
return 0 ;
}
output
Enter first number:10
Enter second number:15
Sum of 10 and 15 = 25
No comments:
Post a Comment