若运行时输入:4.4,则以下程序的运行结果是。#includevoidmain(void){floatcostprice,sellingprice;printf("EnterCostPrice$:");scanf("%f",&costprice);if(costprice>=5){sellingprice=costprice+costprice*0.25;printf("SellingPrice(0.25)$%6.2f",sellingprice);}else{sellingprice=costprice+costprice*0.30;printf("SellingPrice(0.30)$%6.2f",sellingprice);}}
若运行时输入:4.4,则以下程序的运行结果是。#includevoidmain(void){floatcostprice,sellingprice;printf("EnterCostPrice$:");scanf("%f",&costprice);if(costprice>=5){sellingprice=costprice+costprice*0.25;printf("SellingPrice(0.25)$%6.2f",sellingprice);}else{sellingprice=costprice+costprice*0.30;printf("SellingPrice(0.30)$%6.2f",sellingprice);}}
若运行时输入: 4.4, 则以下程序的运行结果是。 #include voidmain(void) {floatcostprice,sellingprice; printf("EnterCost Price $:"); scanf("%f",&costprice); if(costprice>=5) {sellingprice=costprice+costprice*0.25; printf("SellingPrice(0.25)$%6.2f",sellingprice); } else {sellingprice=costprice+costprice*0.30; printf("SellingPrice(0.30)$%6.2f",sellingprice); } }
若运行时输入: 4.4, 则以下程序的运行结果是。 #include voidmain(void) {floatcostprice,sellingprice; printf("EnterCost Price $:"); scanf("%f",&costprice); if(costprice>=5) {sellingprice=costprice+costprice*0.25; printf("SellingPrice(0.25)$%6.2f",sellingprice); } else {sellingprice=costprice+costprice*0.30; printf("SellingPrice(0.30)$%6.2f",sellingprice); } }
1