![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程时光
砖业洋__
掘金/InfoQ签约作者,阿里云/51CTO专家博主,华为云·云享专家,CSDN博客专家,腾讯云·2023年度影响力创作者/优质共创者,擅长MySQL和Java领域,技术分享,全网同名———砖业洋__
展开
-
集合嵌套
看了学习视频,来一段代码import java.util.HashMap;import java.util.Iterator;import java.util.Map;import java.util.Set;public class jiheqiantao { public static void main(String[] args) { HashMap<...原创 2018-02-27 14:34:33 · 6413 阅读 · 0 评论 -
字母奔跑
#include <stdio.h>#include <stdlib.h>#include <windows.h>int main (){ int a,b; a = 0; while (a<=400) { system ("cls"); b = 1; while (b<=a) { printf(" "); ...原创 2018-02-27 16:02:57 · 6483 阅读 · 0 评论 -
求一元二次方程的解
记录下来,因为我容易忘#include<stdio.h>#include<math.h>int main(){ double a, b, c; scanf("%lg%lg%lg", &a, &b, &c); printf("原方程为:%g*x*x + %g*x + %g = 0\n", a, b, c); if (a == 0) {...原创 2018-04-08 18:37:08 · 6916 阅读 · 0 评论 -
闰年个数(非循环)
#include <stdio.h>int main(){ int n, i, count = 0, test; scanf("%d", &n); for (i = 1; i <= n; ++i)// 循环版 { if (i % 4 == 0 && i % 100 != 0 || i % 400 == 0) { ++count;...原创 2018-02-27 15:57:05 · 6993 阅读 · 0 评论 -
斐波那契数列
斐波那契数列,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)。编写程序求出用户指定项数位置的数字。import java.io.BufferedInputStream;import java.util.Scanner;public...原创 2018-04-10 11:55:13 · 6785 阅读 · 0 评论