Pythagoras Triplet

Hello Budd, can i know what was the issue in my logic please help me
Ref :https://ide.codingblocks.com/s/278076

Hey @s.v
logic is fine just a change
data Type int to long
correct code :

1 Like