|
|
|
codepad
|
|
|
|
Saved pastes by beebum:
// The old 30 days program using a while loop.
// You are offered a job working in the heat from sunup to sundown for 30 days.
// Your salary starts at $0.01 per day and will double each day.
// Would you take the job? Run this program and see if the job is worth it.
|
| view (44 lines, 32 lines of output) |
// The old 30 days program using a for loop.
// You are offered a job working in the heat from sunup to sundown for 30 days.
// Your salary starts at $0.01 per day and will double each day.
// Would you take the job? Run this program and see if the job is worth it.
|
| view (43 lines, 32 lines of output) |