入门新手求助
#include<stdio.h>int main()
{
float Regular_edition = 3.5;
float Deluxe_edition = 5.5;
int putong = 0;
int haohua = 0;
float Price = 0.0f;
printf("putong版数量:\n");
scanf("%d",&putong);
printf("豪华版数量:\n");
scanf("%d",&haohua);
price = putong*Regular_edition + haohua*Deluxe_edition;
printf("一共$%.2f\n",price);
return 0;
}
怎么不能编译运行,什么地方出现问题了? 你的price大小写不一导致的 多看编译器报错就能得到错误信息
页:
[1]