打死不穿秋裤

 

2021年11月27日

第十一次作业

摘要: 猜数字:随机产生一个0-99的数,猜猜看如果大了就提示大了点如果小了就提示小了点直到猜对为止 #include <stdio.h> #include <stdlib.h> #include <time.h> int main() { int a,n; srand((unsigned)time(NUL 阅读全文

posted @ 2021-11-27 21:40 打死不穿秋裤 阅读(24) 评论(0) 推荐(0)

第十次作业

摘要: 使用函数,求2个数的最大值,并调用 #include<stdio.h> int Max(int x,int y) { int r; if(x>y) r=x; else r=y; return r; } int main() { scanf("%d%d",&a,&b); c=Max(a,b); pri 阅读全文

posted @ 2021-11-27 21:32 打死不穿秋裤 阅读(33) 评论(0) 推荐(0)

导航