Computer Science, asked by Ritambhar, 2 months ago

write a menu driven program to check whether it is a palindrome number or perfect number switch case

Answers

Answered by khushisaini3054
2

Answer:

Write a menu driven class to accept a number from the user and check whether it is a Palindrome or a Perfect number.

(a) Palindrome number— (a number is a Palindrome which when read in reverse order is same as read in the right order) Example : 11, 101, 151 etc.

(b) Perfect number— (a number is called Perfect if it is equal to the sum of its factors other than the number itself.) Example : 6 = 1 + 2 + 3

Similar questions