随笔分类 -  编程时光

摘要:斐波那契数列,1,1 , 2 , 3 , 5 , 8 , 13 , 21 , 34 , 55 , 89, 144,.如果设F(n)为该数列的第n 项( n ∈N* ),那么数列有如下形式,F(n)=F(n-1)+F(n 2)。编写程序求出用户指定项数位置的数字。imp... 阅读全文
posted @ 2018-04-10 11:55 绿叶萌飞 阅读(199) 评论(0) 推荐(0)
摘要:记录下来,因为我容易忘#include#includeint main(){ double a, b, c; scanf("%lg%lg%lg", &a, &b, &c); printf("原方程为:%g*x*x + %g*x + %g = 0\n", a, b, c... 阅读全文
posted @ 2018-04-08 18:37 绿叶萌飞 阅读(160) 评论(0) 推荐(0)
摘要:#include #include #include int main (){ int a,b; a = 0; while (a<=400) { system ("cls"); b = 1; while (b<=a) { printf(" "); ++... 阅读全文
posted @ 2018-02-27 16:03 绿叶萌飞 阅读(134) 评论(0) 推荐(0)
摘要:#include int main(){ int n, i, count = 0, test; scanf("%d", &n); for (i = 1; i <= n; ++i)// 循环版 { if (i % 4 == 0 && i % 100 != 0 || ... 阅读全文
posted @ 2018-02-27 15:57 绿叶萌飞 阅读(158) 评论(0) 推荐(0)
摘要:看了学习视频,来一段代码import java.util.HashMap;import java.util.Iterator;import java.util.Map;import java.util.Set;public class jiheqiantao { ... 阅读全文
posted @ 2018-02-27 14:35 绿叶萌飞 阅读(116) 评论(0) 推荐(0)