Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int i, j, a;
- a = int.Parse(Console.ReadLine());
- for (i = 1; i < a; i++)
- {
- for (j = 1; j < a; j++)
- {
- if (Math.Pow(i, 2) + Math.Pow(j, 2) == a)
- Console.WriteLine(i + "," + j);
- }
- }
- Console.ReadLine();
Add Comment
Please, Sign In to add comment