问题要求我添加另一种算法,将整数舍入到我的代码中。我该怎么做?
BEGIN
total <--- 0
count <--- 0
REPEAT
OUTPUT "Enter a number"
INPUT nums
Total<--- total + nums
counter <--- counter + 1
OUTPUT "Would you like to enter another number, enter yes or no"
INPUT ask
UNTIL ask == no
average <--- total/count
OUTPUT ("average", average)
END
我当前的代码是