发布时间:2014-11-24 16:26:26
/* ************************************************************ NAME : LISHUBO AUTHOR : .........【阅读全文】
发布时间:2014-11-24 16:11:54
(1)小数的除法:#include int main(){ float a,b,eliminate; scanf("%f %f",&a,&b); eliminate=a/b; printf("eliminate is %f\n",eliminate); return 0;}如图:(2)小数的乘法:#include int main(){ float a,b,ride; scanf("%f %f",&a,&b).........【阅读全文】
发布时间:2014-11-24 15:59:54
(1)整数的加法:#include int main(){ int a,b,sum; scanf("%d %d",&a,&b); sum=a+b; printf("sum is %d\n",sum); return 0;}如图:(2)整数的减法:#include int main(){ int a,b,subtract; scanf("%d %d",&a,&b); subtract=a-b;.........【阅读全文】
发布时间:2014-11-24 12:02:33
/*NAME: TESTAUTHOR: DDDDDDATE : 2014-11-24MODIFY: 2014-11-24 10:23*/#include int main(){ int a,b,c; scanf("%d",&a); //从键盘获取一个整数,a =输入的整数 scanf("%d",&b); //从键盘获取一个整数, b=输入的整数.........【阅读全文】
发布时间:2014-11-24 11:48:54
/*NAME: TESTAUTHOR: DDDDDDATE : 2014-11-24MODIFY: 2014-11-24 10:23*/#include int main(){ int a,b,c; //从键盘输入3个整数,每输入一个按空格键代表确定,接下来就可以输入第二个 scanf("%d", &a); //从键盘中获取一个整数,&nb.........【阅读全文】