摘要: #include<stdio.h> int average(int a,int b,int c){ int x; x=(a+b+c)/3; return x;} int Q(int a,int b,int c,int d,int e){ int x; x=(a+b+c+d+e)/5; return 阅读全文
posted @ 2019-06-03 15:50 p201821440019 阅读(256) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int max2(int a,int b){ if(a>b){ return a;} else{ return b;} } int max4(int a,int b,int c,int d){ int z; z=max2(max2(a,b),max2(c,d)); 阅读全文
posted @ 2019-06-03 15:18 p201821440019 阅读(287) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int prime(int a){ int b; for(b=2;b<=a;b++) if(a%b==0&&a==b) return 1; else break; return 0; } int main(){ int a,b; scanf("%d",&a); b 阅读全文
posted @ 2019-06-03 14:59 p201821440019 阅读(199) 评论(0) 推荐(0) 编辑
摘要: int add(int a,int b){ int c; c=a+b; return c;} int minus(int a,int b){ int c; c=a-b; return c;} int multip(int a,int b){ int c; c=a*b; return c;} int 阅读全文
posted @ 2019-06-03 14:26 p201821440019 阅读(474) 评论(0) 推荐(0) 编辑