0

for loop problem

Find the output of below program:- int main() { int i = 0, x = 0; do { if(i % 5 == 0) { cout<<x; x++; } ++i; }while(i<10); cout<<x; return 0; }

5th Jun 2020, 3:47 AM
Sandip Das
Sandip Das - avatar
3 odpowiedzi
5th Jun 2020, 3:52 AM
BroFar
BroFar - avatar
0
012
5th Jun 2020, 2:06 PM
Naveed
Naveed - avatar