英语翻译Use Psendocodeto write an algorithm:Read a number N,then multiply all the numbers from 1 toN (for example :if N is 5 then add 1*2*3*4*5),Print out the final product.
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/06 01:05:33
英语翻译
Use Psendocodeto write an algorithm:Read a number N,then multiply all the numbers from 1 toN (for example :if N is 5 then add 1*2*3*4*5),Print out the final product.
用psendocode(伪码)写一个算法:
读一个数N
然后把从1到N的数全部乘起来(比如:N=5,那么结果就是1*2*3*4*5)
打出最终的结果.
这个题目的答案是:
Read a N;
int n=N;
int result=1;
while(n>=1)
{
result=n*result;
n=n-1;
}
print out result;
使用psendocodeto写一个算法:读一个数,然后把所有的数字从1吨(例如:如果n是5,然后添加1×2×3×4×5),打印出最终的产品。
使用Psendocodeto写一个算法:
读了一个数N,然后将所有这些数字从1到N相乘
(例如:如果N是5然后加1 * 2 * 3 * 4 * 5),
打印出最后乘积。
英语翻译Use Psendocodeto write an algorithm:Read a number N,then multiply all the numbers from 1 toN (for example :if N is 5 then add 1*2*3*4*5),Print out the final product.
英语翻译use的语法
英语翻译__ no use __
英语翻译put...use 怎么使用.
英语翻译在 use somebody这首歌中
英语翻译there be开头 用上use to
When do you use a computer?英语翻译
英语翻译其中 either own 和 use of
英语翻译pick up debries before use
英语翻译where did you use to live?
use
英语翻译用英语翻译!Please use an adjective to discribe me.
英语翻译Do not use mini-spare while towing class 111 trailer;use temporary mobility kit.
英语翻译I ___ that we should use cars ___ ___ use buses ____
英语翻译do not use undiluted on the skin
英语翻译比较生活话的,不要 use bathroom 这类的.
英语翻译print legibly and begin to use cursive writing
英语翻译1.seem like2.use cards for money