随笔分类 - 编程时光
摘要:斐波那契数列,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...
阅读全文
摘要:记录下来,因为我容易忘#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...
阅读全文
摘要:#include #include #include int main (){ int a,b; a = 0; while (a<=400) { system ("cls"); b = 1; while (b<=a) { printf(" "); ++...
阅读全文
摘要:#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 || ...
阅读全文
摘要:看了学习视频,来一段代码import java.util.HashMap;import java.util.Iterator;import java.util.Map;import java.util.Set;public class jiheqiantao { ...
阅读全文
浙公网安备 33010602011771号