You are on page 1of 9

Control Statements

LAB (Review 3-4)

Applied College

Computer Programming (2)


Write a Java program to determine if a person is eligible to
donate blood or not
Write a Java program that accepts three numbers and checks that all
numbers are equal or not
Write a Java program to accept the number of days of the week (1-7) and write the name of the day
(solve this example using IF)
Write a Java program to accept the number of days of the week (1-7) and write the name of the day
(solve this example using Switch)
Write a Java program to find out the number of days in a month (solve
this example using Switch)
Write a java program to calculate a factorial of a number using a
loop
Write a Java program to check if a number is a prime
number
Write a Java program to enter numbers as many as the user wants and in the end
the program should display the largest and smallest numbers entered

You might also like