c语言编程练习题:7-80 打折
作者:yunjinqi    类别:编程    日期:2023-05-30 16:12:46    阅读:616 次    消耗积分:0 分    

image.png

#include <stdio.h>
int main(){
    int price,discount;
    double money;
    if (scanf("%d %d",&price,&discount)!=EOF){
        money = price*discount/10.0;
        printf("%.2f",money);
    }else{
        printf("input wrong");}
    return 0;}


版权所有,转载本站文章请注明出处:云子量化, https://www.yunjinqi.top/article/205
上一篇:c语言编程练习题:7-79 N个数求和
下一篇:c语言编程练习题:7-81 2018我们要赢

系统当前共有 404 篇文章