摘要: 1.猜数字: 随机产生一个0-99的数,猜猜看 如果大了 就提示大了点 如果小了 就提示小了点 直到猜对为止 #include <stdio.h> #include <stdlib.h> #include <time.h> main(){ int x,guess; srand((unsigned i 阅读全文
posted @ 2021-11-18 17:23 《/》 阅读(30) 评论(0) 推荐(0)
摘要: 猜数字: 随机产生一个0-99的数,猜猜看 如果大了 就提示大了点 如果小了 就提示小了点 直到猜对为止 #include <stdio.h> #include <stdlib.h> #include <time.h> main(){ int x,guess; srand((unsigned int 阅读全文
posted @ 2021-11-18 17:22 《/》 阅读(18) 评论(0) 推荐(0)
摘要: 输出图形 #include<stdio.h> int main() { int f,g,i; for(i=1;i<=5;i++) { for(g=1;g<=i;g++) {printf("*");} printf("\n"); } for(i=6;i<=10;i++) {printf("\n");} 阅读全文
posted @ 2021-11-18 17:16 《/》 阅读(15) 评论(0) 推荐(0)