Java Question
Java Question
2. Write a program to input a number and check and print whether it is a Pronic number or
not. Pronic number is the number which is the product of two consecutive integers.
Examples:
12 = 3 × 4
20 = 4 × 5
42 = 6 × 7
3. Write a program in Java to accept a string in lowercase and change the first letter of every
word to uppercase. Display the new string.
Sample INPUT: we are in cyber world
Sample OUTPUT: We Are In Cyber World
5. Write a program to accept name and total marks of N number of students in two single
subscripted arrays namely, name[ ] and totalmarks[ ].
6. A special two-digit number is such that when the sum of its digits is added to the product
of its digits, the result is equal to original number
Example : 59
5+9 = 14
5*9 = 45
45+14 = 59 Therefore , 59 is a special two digit number
Write a program in java to check whether a number is special two-digit number or not