![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C的入门练习
拾空人
这个作者很懒,什么都没留下…
展开
-
C程序~一元二次方程求解
C程序~一元二次方程求解原创 2022-09-19 09:28:17 · 2630 阅读 · 0 评论 -
用C完成地铁站数学题
下班回家,在地铁站看到了一个有趣的数学竞赛题,第一反应是我要写个程序帮我完成它。回家路上用手机写了代码,第二天上班运行了一下。语法错误不少,没有环境校正果然不行。第一次代码尝试#include<stdio.h>int main(){int a,b,c,d;int count;for(a=1;a<23;a++) for(b=1;b<14;b++) for(c=1;c<10;c++) for(d=1原创 2022-04-27 09:37:07 · 441 阅读 · 0 评论 -
C小练习~数据整理
C语言小练习,数组的应用和排序算法原创 2022-02-08 19:47:45 · 266 阅读 · 0 评论 -
C小练习~查找素数
#include <stdio.h>int main(){ int x; x=2; int count = 0; /* printf("请输入一个整数:"); scanf("%d",&x); /*while(count<20)*/ int max; printf("请输入所求整数范围:\n"); scanf("%d",&max); printf("%d以内的所有素数为:\n",max); for(.原创 2022-02-08 19:40:15 · 168 阅读 · 0 评论 -
遍历法排序和折半查找
排序及查找原创 2021-12-03 21:45:35 · 70 阅读 · 0 评论 -
C小练习~猜数游戏
#include<stdio.h>#include<stdlib.h>#include<time.h>int main(){ int search(int k,int a[],int len) { int ret=-1; int i; } srand(time(0)); int num=rand()%100+1; int x; printf("Welcome to the game.\nThe system seclect.原创 2021-12-03 21:34:28 · 3320 阅读 · 1 评论 -
C综合练习~比赛评分系统
#include<stdio.h>#include<stdlib.h>#include<time.h>#include<string.h>#define N 10 #define M 5 int add = N-1; //int sum[N]={0},Max[N],Min[N]; int sum[N]={0}; float aver[N]; struct player { int num;.原创 2021-09-17 18:45:28 · 1421 阅读 · 0 评论