Question: The following code creates an infinite loop. How you can use a sentinel value to control infinite execution: Int x=1; while (x
The following code creates an infinite loop. How you can use a sentinel value to control infinite execution:
Int x=1;
while (x<=0)
{
cout<<"Hello!";
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
