Assignment - 1
Object oriented programming lab with Java (MCA N – 293 )
Mca 1ST Year 2nd Sem
1.Write a program in JAVA to find the biggest number among three different
numbers using if-else logic and logical operator.
2. Write a program in JAVA to find the Fibonacci numbers within a range as
entered by user using for loop.
3. Write a program in JAVA to find the Factorial of a number using for loop.
4. Write a program in JAVA to find the summation of digits of a number using
While loop.
5.Write a program in JAVA to find whether a number is prime or not using if-
else logic.
6.Write a program in JAVA to find whether a number is palindrome or not.
7.Write a program in JAVA to print the following pattern
*
**
***
****
*****
8.Write a program in JAVA to find whether a given number is Armstrong
number or not.
9.Write a program in JAVA to find whether a given number is Krishnamurty
number or not.