what is output??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

what is output???

//---what is output--- #include<stdio.h> int main() { int res=1; int flag; for(flag=0;flag<5;flag++) {if((flag>2)&&(res>2)) res+=7;} printf("%i",res); return 0; }

23rd May 2020, 3:03 PM
Ashutosh k.
Ashutosh k. - avatar
2 Answers
+ 3
Would be much smarter to see for yourself :) https://code.sololearn.com/cKtV24NDrqr6/?ref=app
23rd May 2020, 3:07 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 1
Output is 1. But please don't post these type of questions in this forum. https://www.sololearn.com/Discuss/1316935/welcome-to-sololearn-forum/
23rd May 2020, 3:09 PM
James Clark I. Vinarao
James Clark I. Vinarao - avatar