7.1
#include<iostream> using namespace std; double tiaohe(double ,double ); void main71() { double a,b; cout<<"Plesase enter 2 number :"; cin>>a; cin>>b; if(a==0||b==0) cout<<"\nWrong input"<<endl; else cout<<"tiaohe is "<<tiaohe(a,b)<<endl; system("pause"); } double tiaohe(double a,double b) { return 2.0*a*b/(a+b); }
——————————————————————————————————————————————————
//写的错误或者不好的地方请多多指导,可以在下面留言或者给我发邮件,指出我的错误以及不足,以便我修改,更好的分享给大家,谢谢。
转载请注明出处:https://www.royalchen.com/
author:royalchen
Email:royalchen@royalchen.com
———————————————————————————————————————————————————