Hi, I'm new to programming (like really new) and needed help with a problem that was on my home work
problem: Write a program to check if the input number (less than 1000) is the summation of two perfect squares or not. For example 25 is 16+9 that both numbers 16 and 9 are perfect squares. The output should be as follows
If input is 3 ->the message should be "3 is not a summation of two perfect squares"
If input is 25 ->The message should be: 25 is the summation of two perfect squares because 25=SQ(3)+SQ(4)
(In mathematics, a square number, sometimes also called a perfect square, is an integer that is the square of an integer; in other words, it is the product of some integer with itself. For example, 9 is a square number, since it can be written as 3×3. )
I know how to write a program that determines if a number is a perfect square but I am completely stumped on how to determine if an input is the summation of two perfect squares. i'm sorry if this is a bad question i'm very new to programming and this forum
Thank you!