//Nicholas Harding Bradley HW 1 Ex 2
#include <string>
#include <iostream>
using namespace std;
int main()
int a;
cout << "Please input the value for a: ";
cin >> a;
int b;
cout << "Please input the value for b: ";
cin >> b;
cout << "The sum of a and b is: " << a + b << endl;
cout << "The difference between a and b is: " << a - b << endl;
cout << "The product of a and b is: " << a * b << endl;
return 0;
}
#include <string>
#include <iostream>
using namespace std;
int main()
int a;
cout << "Please input the value for a: ";
cin >> a;
int b;
cout << "Please input the value for b: ";
cin >> b;
cout << "The sum of a and b is: " << a + b << endl;
cout << "The difference between a and b is: " << a - b << endl;
cout << "The product of a and b is: " << a * b << endl;
return 0;
}
Comments
Post a Comment