Solution for Exercise 9-14
ex0914
#include <stdio.h>
int main()
{
int x;
x=13;
while(x<10)
{
puts("Sore shoulder surgery");
x=x+1;
}
return(0);
}
Notes
* Because the value of x is greater than 10, the while loop never executes. The condition that while examines, x<10, is instantly false.
Copyright © 1997-2026 by QPBC.
All rights reserved
