What is the output of the following program? | SoloLearn: Learn to code for FREE!

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

c++

1/1/2017 12:48:23 PM

fatinfarhanah

8 Answers

New Answer

+2

of course its same

+1

+1

for the first one it's 13 for the second one it's 1

0

what is wrong with my answer?

0

tq everybody for your help

0

13 1

0

0