题目:编程找出c<=1000,c=b+5的所有勾股数,并问:能否利用通项表示{a,b,c} ?
For[c = 6, c <= 1000, c++, b = c - 5; a = Sqrt[c^2 - b^2];
If[Round[a] == a], Print["a=", a, "b=", b, "c=", c]] 哪错的
这是他的蓝字提示:
For::"argt": "\!\(For\) called with \!\(5\) arguments; \!\(3\) or \!\(4\) \
arguments are expected."
请改正