How to convert the following for loop code to a while loop code | SoloLearn: Learn to code for FREE!

0

How to convert the following for loop code to a while loop code

1. for (int x=50 ; x >0 ; x--) 2. { 3. cout << x<< count<< "second to go \n"; 4. }

c++

1/1/2017 12:44:18 PM

fatinfarhanah

2 Answers

New Answer

0

int x = 50; while(x>0) { cout << x << count << " second to go \n"; x--; }

0

tq so much