Write a menu driven program to accept a number and check and display whether it is a prime number or not OR an automorphic number or not. (Use switch- case statement)
(a) Prime number: a number is said to be a prime number if it is divisible only by 1 and itself and not by any other number.
Example : 3, 5, 7, 11, 13 etc.,
(b) Automorphic number: An automorphic number is the number which is contained in the last digit(s) of its square.
Example 25 is an automorphic number as its square is 625 and 25 is present as the last two digits.