+ 1
Why does not it workm?
#include <iostream> using namespace std; int main() { int a, b; cin>>a, b; cout<<"amount: "<<a + b; cout<<"difference: "<<a - b; cout<<"composition: "<<a * b; if(b == 0){ cout<<"No division, one number equal to zero"; } else{ cout<<"division: "<<a / b; } cout<<"remainder of the division: "<<a % b; return 0; }
2 Answers
+ 3
You will have to use
cin >> a >> b;
in order for it to work.
0
Thanks