0
The loops
what is the diffrent between these to code ? is there any diffrent in the result ? is there any diffrent between for loop and while loop in this condition ? int x = 5; while ( x > 2 ) { cout << x; endl; x++; } for (int x = 5 ; x > 2 ; x++ ) { cout << x; endl; }
1 Answer
+ 1
the thing that i understood that in some condition while loop the same as for loop ,However the for loop summarize the time and effort through summarize the text and lines as you saw
and THANKS YOU đđđ