摘要: 任务一: `#include <stdio.h> include <stdlib.h> include <time.h> include <windows.h> define N 80 void print_text(int line, int col, char text[]); // 函数声明 阅读全文
posted @ 2024-04-29 12:49 酒庄 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 任务一: `#include<stdio.h> include<stdlib.h> include<time.h> define N 5 int mian(){ int number; int i; srand(time(0)); for(i=0;i<N;++i){ number = rand()% 阅读全文
posted @ 2024-04-14 23:11 酒庄 阅读(2) 评论(0) 推荐(0) 编辑
摘要: ` #include <stdio.h> #include <stdlib.h> int main() { printf(" O O \n"); printf(" \n"); printf("I I I I\n"); printf(" O \n"); printf("\n"); printf("I 阅读全文
posted @ 2024-03-18 13:17 酒庄 阅读(6) 评论(0) 推荐(0) 编辑
摘要: `#include<stdio.h> include<math.h> include<stdlib.h> int main() { float a,b,c,s,area; while(scanf("%f%f%f",&a,&b,&c)!=EOF) { s=(a+b+c)/2.0; area=sqrt( 阅读全文
posted @ 2024-03-18 13:02 酒庄 阅读(3) 评论(0) 推荐(0) 编辑
摘要: `#include<stdio.h> include<math.h> include<stdlib.h> int main() { double c,f; while(scanf("%lf",&c)!=EOF) { f=9*c/5+32; printf("摄氏度c=%.2f时,华氏摄氏度f=%.2f 阅读全文
posted @ 2024-03-18 13:01 酒庄 阅读(1) 评论(0) 推荐(0) 编辑
摘要: ` #include<stdio.h> include<math.h> include<stdlib.h> int main() { double x,ans; while(scanf("%lf",&x)!=EOF) { ans=pow(x,365); printf("%.2f的365次方:%.2f 阅读全文
posted @ 2024-03-18 13:00 酒庄 阅读(2) 评论(0) 推荐(0) 编辑
摘要: `#include<stdio.h> include<stdlib.h> int main() { int year; int s=1e9; double y; y=0.5+s*1.0/(3600*24*365); year=y; printf("10亿秒约等于%d年\n",year); syste 阅读全文
posted @ 2024-03-18 12:54 酒庄 阅读(2) 评论(0) 推荐(0) 编辑
摘要: ` #include<stdio.h> include<stdlib.h> int main() { int a1,a2,a3; char c1,c2,c3; double x,y; scanf("%d%d%d",&a1,&a2,&a3); printf("al=%d,a2=%d,a3=%d\n", 阅读全文
posted @ 2024-03-18 12:50 酒庄 阅读(2) 评论(0) 推荐(0) 编辑
摘要: `#include <stdio.h> include <stdlib.h> int main(){ char ans1, ans2; printf("每次课前认真预习、课后及时复习了没? (输入y或Y表示有,输入n或N表示没有) 😊; ans1 = getchar(); getchar(); p 阅读全文
posted @ 2024-03-18 12:46 酒庄 阅读(2) 评论(0) 推荐(0) 编辑
摘要: `#include <stdio.h> include <stdlib.h> int main(){ float a,b,c; while(scanf("%f%f%f",&a,&b,&c)!=EOF){ if(a<b+c && b<a+c && c<a+b) printf("能构成三角形\n"); 阅读全文
posted @ 2024-03-18 12:44 酒庄 阅读(1) 评论(0) 推荐(0) 编辑