![]() |
#2
非死亡!2012-03-10 23:30
|
代码
#include <iostream>
using namespace std;
int main()
{
int A,B,D; //D为等效电阻
cout<<"请输入两个电阻:";
cin>>A>>B;
D=A*B/(A+B);
cout<<"等效电阻为:"<<D<<endl;
return 0;
}
编译成的程序。。输入AB。。后就立刻自动关闭了。未出现please enter any key to ...