摘要: 1.猜数字: 随机产生一个0-99的数,猜猜看 如果大了 就提示大了点 如果小了 就提示小了点 直到猜对为止 #include <stdio.h> #include <stdlib.h> #include <time.h> main(){ int x,guess; srand((unsigned i 阅读全文
posted @ 2021-11-13 17:57 山鹤唳 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1. #include<stdio.h> main() { int i,j; for(i=1;i<=5;i++){ for(j=1;j<=i;j++){ printf("*"); } printf("\n"); } } 2. #include<stdio.h> main() { int i,k,j; 阅读全文
posted @ 2021-11-13 17:53 山鹤唳 阅读(6) 评论(0) 推荐(0) 编辑