Practice following questions
1.
Write a program in JAVA to enter
a number from user and check whether a number is positive or negative.
2.
Write a program in JAVA to
enter three coefficients from a user and find roots by quadratic equation.
3.
Write a program in JAVA to
print 1 to 100.
4.
Write a program in JAVA to
print even numbers between 1 to 100.
5.
Write a program in JAVA to
print sum of even numbers between 1 to 100.
6.
Write a program in JAVA to
enter a number from the user and display its reverse.
7.
Write a program in JAVA to
enter a number from user and check whether a number is prime or not.
8.
Write a program in JAVA display
the multiplication table of any no.
9.
Write a program in JAVA to
enter a string from user and copy it to another string.
10.
Write a program in JAVA to
enter a string from user and find its length.
11.
Write a function in JAVA to calculate
factorial of a number.
12.
Write a program in JAVA to
store ten numbers from user in one-dimensional array and find its sum and average.
13.
Write a program in JAVA to
store ten numbers from user in one-dimensional array and find largest of them.
14.
Write a program in JAVA to store
nine [3 x 3] elements in two-dimensional array and display them.
No comments:
Post a Comment