# include void main(){ int num;float tp,ko; cout<<"输入物品数与总价钱"< cin>>num>>tp; if (num>=10&&tp>=10000){ ko=tp*0.1; tp = tp-ko; } cout<<"折扣额:"< <<"应付钱:"< <} //第一题的,在VC++6.0上通过。