摘要: #include <stdio.h> #include <math.h> int main() { double a,rate,tax,profit; printf("奖金数:"); scanf("%lf",&a); if (a>=0&&a<500) rate=0.00; else if(a>=50 阅读全文
posted @ 2019-04-25 16:00 p201821430042 阅读(135) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main() { int a,b,c; printf("input a:"); scanf("%d",&a); printf("input b:"); scanf("%d",&b); printf("input c:"); scanf("%d",&c); 阅读全文
posted @ 2019-04-25 15:49 p201821430042 阅读(89) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>int main(){ int year,days; printf("input the year:"); scanf("%d",&year); if(year%4==0) { if(year%100==0) { if(year%400==0) days=29; 阅读全文
posted @ 2019-04-25 14:36 p201821430042 阅读(67) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>int main (){ char a,b,c,d,e; a=getchar(); b=getchar(); c=getchar(); d=getchar(); e=getchar(); putchar(a); putchar(b); putchar(c); pu 阅读全文
posted @ 2019-04-25 14:11 p201821430042 阅读(120) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<math.h>int main(){ double x,y,z; scanf("%lf%lf",&x,&y); z=x+1/fabs(y); printf("%15.6f\n",z); printf("%d\n",(int)z); printf(" 阅读全文
posted @ 2019-04-11 15:11 p201821430042 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-04-11 14:32 p201821430042 阅读(63) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ char c1,c2; c1=97; c2=98; printf("c1=%c,c2=%c\n",c1,c2); printf("c1=%d,c2=%d\n",c1,c2); return 0;} 阅读全文
posted @ 2019-04-11 14:29 p201821430042 阅读(136) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int a,b,sum; a=123; b=456; sum=a+b; printf("sum is %d\n",sum); return 0;} 阅读全文
posted @ 2019-04-11 14:22 p201821430042 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-22 21:54 p201821430042 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-06 13:14 p201821430042 阅读(207) 评论(0) 推荐(0) 编辑