+ 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; }

1st Aug 2019, 1:12 PM
ŠœŠøŃ…Š°ŠøŠ» Попов
ŠœŠøŃ…Š°ŠøŠ» Попов - avatar
2 Answers
+ 3
You will have to use cin >> a >> b; in order for it to work.
1st Aug 2019, 1:15 PM
Shadow
Shadow - avatar
0
Thanks
1st Aug 2019, 1:16 PM
ŠœŠøŃ…Š°ŠøŠ» Попов
ŠœŠøŃ…Š°ŠøŠ» Попов - avatar