标签:NPU span tla end matlab style class pre div
1-72
% 输入若干个数,当输入0时结束输入,求这些数的平均值和他们的和 sum = 0; n =0; val = input(‘输入数字(输入0就结束):‘); while (val ~= 0) sum = sum + val; n = n+1; val = input(‘输入数字(输入0时就结束):‘); end if (n > 0) sum mean = sum/n end
标签:NPU span tla end matlab style class pre div
原文地址:https://www.cnblogs.com/xieyi-newlife/p/9108145.html