论文部分内容阅读
在中学计算机课的BASIC语言程序设计教学中,让同学编写能求出数值不超过100的正整数勾股弦数。即不定方程x~2+y~2=z~2的数值不超过100的正整数解。同学们很快编出如下的程序:
In the BASIC language programming teaching in the middle school computer class, let the students write the number of positive integers that can be calculated to no more than 100. That is, the value of the indefinite equation x~2+y~2=z~2 does not exceed 100. The classmates quickly compiled the following procedure: