Write a program to print all the automorphic numbers from 1 to 1000 using following
functions.
void automorphic(int n) where the function receives series of numbers from 1 to
1000 from the function call statement and print it on the screen if found automorphic.
(Automorphic number is one which is found in the square of its value in the last
digits) for example : 25 is an automorphic as it is available in its square (625).
void main():Generates series of numbers from 1 to 1000 and passes it to method void automorphic(int n).
Answers
Answered by
0
Explanation:
Write a program to print all the automorphic numbers from 1 to 1000 using following
functions.
void automorphic(int n) where the function receives series of numbers from 1 to
1000 from the function call statement and print it on the screen if found automorphic.
(Automorphic number is one which is found in the square of its value in the last
digits) for example : 25 is an automorphic as it is available in its square (625).
void main():Generates series of numbers from 1 to 1000 and passes it to method void automorphic(int n).
Similar questions
Chemistry,
1 month ago
CBSE BOARD X,
1 month ago
History,
1 month ago
Math,
2 months ago
Social Sciences,
10 months ago
Math,
10 months ago