Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 11

Q.

) Write a Java program to check if given number is odd or even and increment and decrement the
given value

Q.) Write a Java program to check for string length and change cases using toUpperCase() and
toLowerCase()
Q.) Write a Java program to check for leap year

Q.) Write a Java program to print first 10 natural numbers


Q.) Write a Java program to print perimeter and area of circle by user’s input

Q.) Write a Java program to print perimeter and area of rectangle by user’s input
Q.) Write a Java program to check whether given number is prime or not

Q.) Write a Java program to check whether a student is pass or fail (for passing marks >=50)
Q.) Write a Java program to check vowels using Switch statements
Q.) Write a Java program to make basic calculator
Q.) Write a Java program checking for the weekday using day number
Q.) Write a Java program for Adding Digits Of given number

Q.) Write a Java program to calculate the factorial of given number


Q.) Write a Java program to calculate compound interest

Q.) Write a Java program to Calculate Electricity Bill


Q.) Write a Java program to print the string in reversed order

Q.) Write a Java program to print a star pyramid


Q.) Write a Java program to check for all the vowels in the given string

You might also like