Write a menu driven program to accept a number and check and display whether it is a prime number or not OR
an automorphic or not (use switch case statement)
a) Prime number : A number is said to be prime if it is divisible by 1 or itself only.
b) Automorphic number : An automorphic number is the number which is contained in the last digit of
its square
Example 25 is an automorphic number as its square is 625 and 25 is present as the last two digits
Answers
Answered by
0
Answer:
(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.Read more on Sarthaks.com - https://www.sarthaks.com/840571/write-driven-program-accept-number-check-display-whether-prime-number-automorphic-number
Answered by
0
Answer:
bs and s. s s s s d dbdbd dbdbdbd bdbdbdbd dnsnsnsbsbsbs s bsbssnsnsn
Similar questions