|
|
Ch 3 Questions #4 While Loops |
|
|
|
1. Write a program fragment using a while loop that will count to ten? 2. What is a sentinel value in a loop and what is it used for 3. Write a program fragment that will generate an infinite loop. 4. Write a program fragment that will generate a series of x and y values between -10 and 10 where for each x, y has a value of x squared? 5. What does it mean to tokenize a string? |
|