2017年3月22日
摘要: 阅读全文
posted @ 2017-03-22 20:14 李兆嘉 阅读(96) 评论(0) 推荐(0) 编辑
  2017年3月15日
摘要: 阅读全文
posted @ 2017-03-15 13:08 李兆嘉 阅读(88) 评论(0) 推荐(0) 编辑
  2016年10月23日
摘要: 实验3-4输入一行字符,分别统计出其中的英文字母、空格、数字和其他字符的个数。 实验3-5输入两个正整数m和n,求其最大公约数和最小公倍数。 实验3-6 输出所有的“水仙花数”,所谓“水仙花数”是指一个3位数,其各位数字的立方和等于该数本身。例如:153是一个水仙花数,因为153=13+53+33。 阅读全文
posted @ 2016-10-23 11:03 李兆嘉 阅读(297) 评论(1) 推荐(0) 编辑
  2016年10月22日
摘要: #include<stdio.h> int main(){ float a,tax=0,TaxIncome=0; printf("请输入您的工资:"); scanf("%f",&a); if(a<=1455){ tax=(a-3500)*0.03-0; TaxIncome=a-tax; } else 阅读全文
posted @ 2016-10-22 11:44 李兆嘉 阅读(147) 评论(0) 推荐(0) 编辑
  2016年10月16日
摘要: 实验2-6 猜数字游戏 实验2-7判断能否成为三角形 #include<stdio.h>#include<math.h>int main(){ int a=0,b=0,c=0,C; float s,S; printf("请输入三条边:\n"); scanf("%d%d%d",&a,&b,&c); i 阅读全文
posted @ 2016-10-16 13:33 李兆嘉 阅读(155) 评论(1) 推荐(1) 编辑
  2016年9月27日
摘要: 2-1 #include<stdio.h> int main(){ int a,b,c,t; scanf("%d%d%d",&a,&b,&c); if(a<b){ t=a; a=b; b=t; } if(b>c){ printf("%d\t%d\t%d\n",a,b,c); } else if(c> 阅读全文
posted @ 2016-09-27 22:19 李兆嘉 阅读(160) 评论(1) 推荐(0) 编辑