+ 4
what is the output of this code?
int main() { int a,b,c; a=2; for (b=2; b<5; b++) for (c=1; c<5; c+=2) a*=3; a=a*b+c; cout<<a++; } ................................................................................... options: 1) 7295 2) 7296 3)14580 4)5832
6 ответов
+ 9
The best thing to try for these questions is to write the code into the code playground and run it.
+ 4
Tay I tested your code, and the result is 7295, and I ran it several times with the same output every time.
+ 3
option 1: 7295
+ 2
I did but I got different result which is not in those 4 options.
+ 1
Thank you.
0
14580