0

What is the output of the following program?

#include <iostream> using namespace std; int main() { int x,y,z; x=8 y=3 x+=x-3 cout<<x<<endl; z=x%3; cout<<z<<endl; return 0; }

1st Jan 2017, 12:48 PM
fatinfarhanah
8 ответов
+ 2
of course its same
1st Jan 2017, 2:08 PM
Saksham Beniwal
Saksham Beniwal - avatar
+ 1
13 1
1st Jan 2017, 12:58 PM
Andreas K
Andreas K - avatar
+ 1
for the first one it's 13 for the second one it's 1
1st Jan 2017, 2:06 PM
Saksham Beniwal
Saksham Beniwal - avatar
0
what is wrong with my answer?
1st Jan 2017, 2:07 PM
Andreas K
Andreas K - avatar
0
tq everybody for your help
1st Jan 2017, 2:52 PM
fatinfarhanah
0
13 1
1st Jan 2017, 4:25 PM
Miranda
Miranda - avatar
0
13 1
1st Jan 2017, 5:10 PM
Aditya Agarwal
Aditya Agarwal - avatar
0
13 1
1st Jan 2017, 5:10 PM
Aditya Agarwal
Aditya Agarwal - avatar