摘要: 1.猜数字,随机产生一个0-99的数字,猜猜看如果大了,就提示大了点,小了就提示小了点,直到猜对为止。 #include <stdio.h> #include <stdlib.h> #include <time.h> int main() { int a, b ,c=0; srand((unsign 阅读全文
posted @ 2021-11-19 21:26 鹏宇0240 阅读(30) 评论(0) 推荐(0)
摘要: 1.定义一个含有8个储存单元的实型数组,从键盘上接收数,然后逆序输出。 #include <stdio.h> main(){ double a[8]; int i; for (i=0;i<7;i++) scanf("%lf",&a[i]); for(i=7;i>=0;i--) printf("%f" 阅读全文
posted @ 2021-11-19 18:40 鹏宇0240 阅读(35) 评论(0) 推荐(0)