Conditional Questions
Conditional Questions
[email protected]
Question 1 : Write a Java program to get a number from the user and print whether it is
positive or negative.
Question 2 : Finish the following code so that it prints You have a fever if your temperature
is above 100 and otherwise prints You don't have a fever.
Question 3 : Write a Java program to input week number(1-7) and print day of week name
using switch case.
Question 5 : Write a Java program that takes a year from the user and print whether that
year is a leap year or not.
Hint:
[email protected]