Computer Science, asked by vihangaravishka30, 7 hours ago

(1). Write a java program to Display the following:

a). Fibonacci Series. e.g. input: 8 (that is 8 Fibonacci Numbers are to be displayed) output: 1, 1, 2, 3, 5, 8, 13, 21 Hint: fib(n) = fib(n-1)+fib(n-2)

b). Factorial a given number

c). Sum of odd numbers between 0 and 100

d). Sum of even numbers between 0 and 100

(2). Write a Java Application to perform the following

a). Write a function to check whether a given number is a prime number or not.

b). Write another function to display all the prime numbers between 10 and 100

c). Write a main method to test the above functions.​

Answers

Answered by applanaidusadi
0

Answer:

1'2'3'5'8'13'21 23'25'27'29'33'

Similar questions