当前位置: > 已知一个数列的前3个数为0,1,2,以后每个数为前3个数的和,编程序求此数列的第25项...
题目
已知一个数列的前3个数为0,1,2,以后每个数为前3个数的和,编程序求此数列的第25项

提问时间:2021-03-17

答案
public static void main(String[] args) {
// TODO code application logic here
int a = 0;
int b = 1;
int c = 2;
int sum = 0;
System.out.println("第1个:"+a);
System.out.println("第2个:"+b);
System.out.println("第3个:"+c);
for (int i=4;i
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.