Solution for Exercise 9-13
ex0913
#include <stdio.h> int main() { int x; x=0; while(x<10) { puts("Sore shoulder surgery"); x=x+1; } return(0); }
Output
Sore shoulder surgery
Sore shoulder surgery
Sore shoulder surgery
Sore shoulder surgery
Sore shoulder surgery
Sore shoulder surgery
Sore shoulder surgery
Sore shoulder surgery
Sore shoulder surgery
Sore shoulder surgery
Notes
* Does the output give you déjà vu? Look at the solution for Exercise 9-1 to see the for loop version of this code.
Copyright © 1997-2024 by QPBC.
All rights reserved