Nesting Loops and Ifs
24. Virtual Reality
Answer:
120 rows of 50 stars will work. (It might be stretching things a bit to call this a Virtual Reality program.)
Virtual Reality
You have reached the end of the chapter. A star student will review the following.
- program, adding evens and odds Adding up even and odd integers.
- if, nested A nested
if
statement. - factorial, definition Definition of N factorial.
- factorial, flowchart Flowchart for computing N!
- program, factorial Factorial program.
- overflow Overflow.
- brick, free fall The problem of the falling brick.
- program, falling brick Falling Brick program.
- program, row of starts Rows of Stars program.
- divide and conquer Divide and Conquer
The next chapter discusses more about loops.