100% Guaranteed Results


OOPJ – Java Question On Control Flow and Loops Solved
$ 20.99
Category:

Description

5/5 – (1 vote)

1. Write a java program to find nth term of Fibonacci series.
2. Write a java program to find x^y
3. Write a java program to find nth prime no. starting after x.
4. Write a java program to print table of x starting from 1 to y 5. Write a java program to find sum of digit of a given number.
6. Write a java program to find whether a given no is prime or not
7. Write a java program that divide a given no. as follows
Eg : input is 1234567
First no. 1357 (digit of odd place) Second no. 246 (digit of even place) And find which no is large.
8. Write a java program to convert degree into Celsius and vice versa
9. Write a java program to display grade based on number obtain using if-else-if ladder and nested conditional operator.
a. >90 grade A+
b. >80 & <90 grade A
c. >70 & <80 grade B
d. >60 & <70 grade C
e. >50 & <60 grade D
f. >40 & <50 grade E
g. <40 grade grade F
10. Write a java program to find a given no is even or odd.
11. Write a java program to find a given no is palindrome or not
12. Write a java program to find a given no is Armstrong or not
13. Write a java program to perform arithmetic operation on 2 number based on user choice by using switch case.
14. Write a java program to demonstrate the use of Break and Continue with label.
15. Write a java program to execute following expression. Add necessary code to correct the given expression if required:
a. byte a=10; a=a+10;
b. short b=15; int c=b/3.0;
c. double a=12.9; float b= (float)a/3.5;

Reviews

There are no reviews yet.

Be the first to review “OOPJ – Java Question On Control Flow and Loops Solved”

Your email address will not be published. Required fields are marked *

Related products