Java Bootcamp – Workbooks and Challenges
)}

Workbook 5.6

From the Java Bootcamp Resources, launch Workbook 5.6.

6.png

Even or odd


Task 1


Make a for loop that counts from 0 to 19.

>>: 0 >>: 1 >>: 2 >>: 3 >>: 4 >>: 5 >>:... >>: 19

Task 2


Using an if - else statement, mark each number as even or odd.

Hint: Use the modulus operator %.

Visualizing the Runtime

After you solve this workbook, I still recommend watching the video solution on Udemy.

6.png

It will show you how to visualize the runtime using Visual Studio Code.


Associated Course: The Complete Java Development Bootcamp
Related Course: The Complete Spring Boot Development Bootcamp – Become a Java Web Developer

Feedback Summary
4.7
43 students
5

91%
4

2%
3

0%
2

0%
1

7%
Written Reviews
There are no written reviews yet.