标题:这个那又错了。
取消只看楼主
魔芋大王
Rank: 1
等 级:新手上路
帖 子:16
专家分:0
注 册:2008-2-14
 问题点数:0 回复次数:0 
这个那又错了。
#include<stdio.h>
void main()
{
    int a,b;
    float sum,minus,product,quotient,remainder;
    scanf("%d%d",&a,&b);
    sum=float(a)+b;
    minus=a-b;
    product=a*b;
    quotient=a/b;
    remainder=a%b;
    printf("%.2f\n%.2f\n%.2f\n%.2f\n%.2f\n",sum,minus,product,quotient,remainder);

}
搜索更多相关主题的帖子: remainder quotient sum product float 
2008-03-05 15:52



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-202073-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.865324 second(s), 10 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved