- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExercise32.java
More file actions
Latest commit
14 lines (9 loc) · 500 Bytes
/
Copy pathExercise32.java
File metadata and controls
14 lines (9 loc) · 500 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
publicclassExercise32 {
publicstaticvoidmain(Stringarg[]) {
// Print all the odd numbers between 1 and 99.
// Variation 1: Print them all on separate lines.
// Variation 2: Print them all on the same line, with a single newline at the very end.
// Variation 3: Print them all on the same line, but with a newline after every fifth number
// (so 1 3 5 7 9 are on the first line, then 11 13 15 17 19 are on the next line, etc.).
}
}