![]() |
#2
某一天2017-06-01 15:58
|
#include<iostream>
using namespace std;
int main()
{
float ApplePrice=3.5;
float BananaPrice=4.2;
float AppleWeight=0.0;
float BananaWeight=0.0;
cout<<"请输入苹果的价格"<< endl;
cin>>AppleWeight;
cout<<"请输入香蕉的价格"<<endl;
cin>>BananaWeight;
Total=ApplePrice*AppleWeight+BananaPrice*BananaWeight;
cout<<"应付款"<<Total<<endl;
return 0
}
只有本站会员才能查看附件,请 登录
请问哪里是错误的,求解,谢谢
[此贴子已经被作者于2017-6-1 15:38编辑过]