Saturday, 20 May 2017

C++ program to add two integer numbers Problem Solution.


Solution:

#include<bits/stdc++.h>
using namespace std;
/*
    * Prosen Ghosh
    * American International University - Bangladesh (AIUB)
    *
*/
int main(){

    int a,b,sum;
    cout << "Enter first number: ";
 cin >> a;
 cout << "Enter second number: ";
 cin >> b;

 sum = a + b;
 cout << "Addition is: " << sum << endl;
    return 0;
}

No comments:

Post a Comment