|
| |
Nesting
You may have to repeat a sequence that includes
another repetition.
swallow two capsules a day for 10 days.
for (int day=1;day<=10;day++)
- {
- for (int time=1;time<=2;time++)
- {
- //swallow capsule
- }
- // wait for next day
- }
|
|
example: at the store - 2
|