0% found this document useful (0 votes)
69 views3 pages

Fibonacci Series: Write A Java Program To Print Fibonacci Series Without Using Recursion and Using Recursion

The document outlines 8 Java programming problems: printing the Fibonacci series recursively and non-recursively, checking if a number is prime, checking if a number is a palindrome, calculating the factorial of a number, checking if a number is an Armstrong number, and sorting an array using bubble, selection, and insertion sort algorithms. For each problem, sample inputs and expected outputs are provided.

Uploaded by

Anuj Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views3 pages

Fibonacci Series: Write A Java Program To Print Fibonacci Series Without Using Recursion and Using Recursion

The document outlines 8 Java programming problems: printing the Fibonacci series recursively and non-recursively, checking if a number is prime, checking if a number is a palindrome, calculating the factorial of a number, checking if a number is an Armstrong number, and sorting an array using bubble, selection, and insertion sort algorithms. For each problem, sample inputs and expected outputs are provided.

Uploaded by

Anuj Jain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1) Fibonacci series

Write a java program to print fibonacci series without using recursion and using recursion.

Input: 10

Output: 0 1 1 2 3 5 8 13 21 34

2) Prime number
Write a java program to check prime number.

Input: 44

Output: not prime number

Input: 7

Output: prime number

3) Palindrome number
Write a java program to check palindrome number.

Input: 329

Output: not palindrome number

Input: 12321

Output: palindrome number

4) Factorial number
Write a java program to print factorial of a number.

Input: 5

Output: 120
Input: 6

Output: 720

5) Armstrong number
Write a java program to check Armstrong number.

Input: 153

Output: Armstrong number

Input: 22

Output: not Armstrong number

6) Bubble Sort
Write a java program to sort an array elements using bubble sort algorithm.

Input: 18 9 33 4 84 32

Output: 4 9 18 32 33 84

7) Selection Sort
Write a java program to sort an array elements using selection sort algorithm.

Input: 18 9 33 4 84 32

Output: 4 9 18 32 33 84

8) Insertion Sort
Write a java program to sort an array elements using insertion sort algorithm.

Input: 18 9 33 4 84 32

Output: 4 9 18 32 33 84

You might also like