上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
摘要: #include<stdio.h>#include<math.h>#define PI 3.141592654void cal(int sel);double vol_ball(void);double vol_cylind(void);double vol_cone(void);int main( 阅读全文
posted @ 2025-01-02 16:10 Grit_Doyle 阅读(19) 评论(0) 推荐(0)
摘要: #include<stdio.h>#define Mile_to_meter 1609 //1英里等于1609米 #define Foot_to_centimeter 30.48 //1英尺=30.48厘米 #define Inch_to_centimeter 2.54 //1英寸=2.54厘米 i 阅读全文
posted @ 2025-01-02 16:10 Grit_Doyle 阅读(79) 评论(0) 推荐(0)
摘要: #include<stdio.h>void hanio(int n,char a,char b,char c);int main(){ int n; printf("input the number of disk:"); scanf("%d",&n); printf("the steps for 阅读全文
posted @ 2025-01-02 16:09 Grit_Doyle 阅读(10) 评论(0) 推荐(0)
摘要: #define Mile_to_meter 1609 //1英里等于1609米 #define Foot_to_centimeter 30.48 //1英尺=30.48厘米 #define Inch_to_centimeter 2.54 //1英寸=2.54厘米 阅读全文
posted @ 2025-01-02 16:09 Grit_Doyle 阅读(13) 评论(0) 推荐(0)
摘要: #include<stdio.h>#define MAX(a,b) a>b?a:b#define SQR(x) x*xint main(void){ int x,y; scanf("%d%d",&x,&y); x=MAX(x,y); y=SQR(x); printf("%d %d\n",x,y); 阅读全文
posted @ 2025-01-02 16:08 Grit_Doyle 阅读(20) 评论(0) 推荐(0)
摘要: #include<stdio.h>#include"length.h"int main(){ float foot,inch,mile; printf("Input mile,foot and inch:"); scanf("%f%f%f",&mile,&foot,&inch); printf("% 阅读全文
posted @ 2025-01-02 16:08 Grit_Doyle 阅读(26) 评论(0) 推荐(0)
摘要: #include<stdio.h>double fact(int n);int main(){ int n; scanf("%d",&n); printf("%f",fact(n)); return 0;} double fact(int n){ double result; if(n==1||n= 阅读全文
posted @ 2025-01-02 16:07 Grit_Doyle 阅读(16) 评论(0) 推荐(0)
摘要: #include<stdio.h>struct student { int num; char name[10]; int computer,english,math; double average;};int main(){ int i,index,j,n; struct student stud 阅读全文
posted @ 2025-01-02 16:07 Grit_Doyle 阅读(16) 评论(0) 推荐(0)
摘要: #include<stdio.h>struct student { int num; char name[10]; int computer,english,math; double average;};int update_score(struct student *p,int n,int num 阅读全文
posted @ 2025-01-02 16:06 Grit_Doyle 阅读(27) 评论(0) 推荐(0)
摘要: #include<stdio.h>struct student { int num; char name[10]; int computer,english,math; double average;};int main(){ int i,n; struct student s1,max; prin 阅读全文
posted @ 2025-01-02 16:06 Grit_Doyle 阅读(21) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页