题目
用java编写一个程序,计算1!+2!+3!+4!+5!
提问时间:2021-01-19
答案
public class TestArray{public static void main(String[] args){int m = 0;for(int i = 1;i < 6;i++){int n = 1;for(int j = 1;j < i+1;j++){n = n * j;}m = m + n;}System.out.println(m);}}运行结果:153
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
最新试题
- 1为什么质量和材料一样,但质量分布在边缘的物体的转动惯量大于质量均匀分布的圆盘.
- 2“考虑到安全问题”的英语翻译
- 3弹簧测力计下挂一重物,示数为7.6牛,讲重物浸没水中时,弹簧测力计的示数为6.62牛求(1)重物受到的浮力(2)重物的体积(3)将这一重物浸没在酒精中时,弹簧秤的示数是多大?(酒精=0.8×10 3千
- 4解关于x的方程(初二数学题)
- 5春雨贵如油,有谁知道下一句吗
- 6关于心情的二字词语有哪些
- 7求2个字的词:形容一个人能吃苦、不怕吃苦.
- 8求圆锥体积公式己知底面半径和母线
- 9速求“青春.责任.成长”主题演讲稿!
- 10If there is happiness shape,what whuid it be I want is you
热门考点
- 1英文中体格(build)得修饰词有哪些?(越多越好)
- 2大桶装水是小桶3倍 大桶倒出85千克,小桶倒出5千克 两桶一样多 问大桶多少千克 小桶多少千克
- 3小明储钱罐里有87.5元,都是一元和五角硬币.如果1元硬币是五角的三倍,一元五角个多少枚
- 4把 舟过安仁 写成短文200字
- 5She found it difficult to do the work.的宾语补足语是什么?为什么?
- 6若ab互为相反数cd互为倒数求2a+b²c+b
- 7关于初三英语从句的一道题?
- 8解方程的解:9x+3y+z=0,x-y+z=0,z=-3
- 9一项工程,甲单独做10天完成,乙单独做15天完成.若甲先做4天,乙接着做,还需几天完成?
- 10pumpkin,如果你叫你朋友pumpkin有什么含义呢?