Question: Convert the following while loop to a for loop using c++ int x = 1; while (x < 1000) { cout < < Enter a
Convert the following while loop to a for loop using c++
int x = 1;
while (x < 1000)
{
cout << "Enter a number: ";
int number;
cin >> number;
cout << "Your number is too small" << endl;
x = x + 100;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
