摘要: 阅读全文
posted @ 2019-05-09 15:07 P201821430036 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-09 15:04 P201821430036 阅读(110) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main() {int i,s=0,j,m=20; for(i=1,j=22;i<=50;i++) {s=s+j; j=j+m; } printf("s=%d\n",s); return 0; } 阅读全文
posted @ 2019-05-09 14:46 P201821430036 阅读(148) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int a; double rate,tax,profit; scanf("%d",&a); if(a<500) { printf("a=%d,rate=0,tax=0,profit=%f",a,a); } else if((a>=500)& 阅读全文
posted @ 2019-04-25 16:12 P201821430036 阅读(85) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main() { float a,b,c; printf("输入三条边:\n"); scanf("%f%f%f",&a,&b,&c); if(a+b>c&&b+c>a&&a+c>b) { if(a==b&&a==c) printf("等边三角形"); el 阅读全文
posted @ 2019-04-25 15:46 P201821430036 阅读(116) 评论(0) 推荐(0) 编辑
摘要: # include <stdio.h>int main(){ int year,month=2,days;printf("input the year:");scanf("%d",&year);if(((year%100!=0)&&(year%4==0))||((year%100==0)&&(yea 阅读全文
posted @ 2019-04-25 15:02 P201821430036 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-04-25 14:56 P201821430036 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-04-11 15:19 P201821430036 阅读(150) 评论(0) 推荐(0) 编辑