Set sum to 0 Read num1 Set sum to sum+num1 Read num2 Set sum to sum+num2 Read num3 Set sum to sum+num3 Write sum
这里我用了两种方法 (1)直接计算 (2)循环语句