Example 22: Four-Digit Perfect Square
Explore writing a C program that identifies four-digit perfect squares with the first two and last two digits also forming perfect squares. Learn to apply loops, digit extraction, and mathematical functions to solve this problem effectively.
We'll cover the following...
We'll cover the following...
Problem
Write a program that finds four-digit perfect squares where the number represented by the first two digits and the number represented by the last two digits are also perfect squares.
Example
| Input | Output |
|---|