摘要: #include <stdio.h> #include <math.h> #include <stdlib.h> #include <time.h> #define PI 3.1415 /*C语言time(NULL)是以当前时间为种子,产生随意数。 其中,time(NULL)用来获取当前时间,本质上 阅读全文
posted @ 2021-06-08 15:55 myrj 阅读(208) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> main() { int i,a,b,c,d,e; printf("请输入四位整数:\n"); scanf("%d",&i); e=i; a=i%10;b=(i-a)/10%10;c=(i-a-b*10)/100%10;d=i/1000; printf("%d, 阅读全文
posted @ 2021-06-08 06:54 myrj 阅读(1349) 评论(0) 推荐(0) 编辑