Computer Science, asked by Madhurrathi3908, 1 year ago

Example for java programs ?

Answers

Answered by Shouryapatel100
1

Answer:

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

Answered by dsdwkarunarathna9811
0

string n;

Scanner input= new Scanner (System.in );

System.out.println("enter client name: ");

n=input.next();

System.out.println(client name+"welcome")

Similar questions