Hello!As I am a beginner I have a question to a program that I want to make.
I need to do the sum of the elements that are perfect square. It is not hard to do ,but I don`t know what condition I need to put in if(...)so that the program would select only the perfect square numbers and sum them. Again ,I only want the condition. Thank you !
ohh,sorry I formulated wrong . What I mean is that I want to make me the sum of all the square numbers . Something like
1 2 3 4 5 6
36
25
49
5
6
sum=25+49+36
I`m not good at explaining ,but something that would calculate the square numbers . I Guess
I just want to know if there is a way to make that statement in a if(...)