Question: 1. WAP (Write a program) in Java to read in a positive integer from user and find it's reverse. Display the result. 2. Write a

 1. WAP (Write a program) in Java to read in a

1. WAP (Write a program) in Java to read in a positive integer from user and find it's reverse. Display the result. 2. Write a Java Program to reverse the letters present in the given String. 3. WAP to compute the sum of the digits of a positive number. 4. WAP to read in a sequence of n numbers (both negative and non-negative) and find the average of the non-negative numbers. 5. WAP to take as input a positive integer and check if it is even or not. 6. WAP to generate all prime numbers up to n, where n is given as input by the user. 7. WAP to display the following sequences: a) 1 2 3 4 5 b) 1 c) 5 4 3 2 1 1 2 3 4 21 5 4 3 2 123 3 2 1 5 4 3 12 4 3 2 1 54 1 5 4 3 2 1 5 un d) 5 54 5 4 3 5 4 3 2 5 4 3 2 1 e) 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!