Computer Science, asked by arnavagrawal876, 2 months ago

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 yuvrajpagare20
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