英语翻译Use Psendocodeto write an algorithm:Read a number N,then
来源:学生作业帮 编辑:拍题作业网作业帮 分类:英语作业 时间:2024/04/20 14:52:28
英语翻译
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 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;
读一个数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;
英语翻译Write a recursive algorithm to find the combination of n
Every student is r【】to read a famous book and then write an
Read,number and write
Read the information about Deng Yaping.Then write an article
Read the information below.Then write an article about her.
英语翻译RoutingA possible routing algorithm for a cluster-tree n
关于java编程问题Write an algorithm and a program to settle the fol
Please read the chart carefully,then write a short passage.
Java write a program to read an integer,n,from the keyboard
英语翻译①Today,researchers often use the term "genetic algorithm
Write a review of an English book you read
read and write with"ing"then translate.