(Solved) : 6 Write Java Programs Following Take Input Number Find Display Following Sum Even Digits Q29984470 . . .
6. Write Java programs for the following:
a. To take the input of a number and then find and display thefollowing: i. sum of even digits ii. sum of odd digits iii. totalnumber of even digits iv. total number of odd digits
b. To take the input of a number and then check whether it is anArmstrong number or not, i.e. the sum of the cubes of it’s digitsis equal to the number itself. For example 13 + 33 + 53 = 153
c. To take the input of a number and then find and display thereverse of a number.
d. To take the input of two numbers and then find and displaytheir HCF (highest common factor).
e. To take the input of two numbers and then find and displaytheir LCM (Lowest common multiple).
f. To take the input of a number n and then find the sum of alleven numbers between 1 and n .
g. To take the input of a number n and then find the sum of allodd numbers between 1 and n .
Expert Answer
Answer to 6 Write Java Programs Following Take Input Number Find Display Following Sum Even Digits Q29984470 . . .
OR