标签:name space ++ stream com https else std class
小学生c++编程资料
链接:https://pan.baidu.com/s/1FfOirxJ9rrY7rxtHUM4W_A
提取码:uqm9
#include<iostream>
using namespace std;
int main()
{
int lucheng,shijian;
float feiyong=0;
cin>>lucheng;
if(lucheng>10)
feiyong=6+(10-2)*1.8+(lucheng-10)*1.8*1.5;
else
if(lucheng>2)
feiyong=6+(lucheng-2)*1.8;
else
feiyong=6;
cin>>shijian;
feiyong+=(shijian/3)*1;
cout<<feiyong<<endl;
return 0;
}
标签:name space ++ stream com https else std class
原文地址:https://www.cnblogs.com/kixiaoyuan/p/12695033.html