并联电阻计算器 - C++ 代码实现
#include <iostream>
#include <iomanip>
int main() {
double r1, r2;
std::cin >> r1 >> r2;
double R = 1 / (1/r1 + 1/r2);
std::cout << std::fixed << std::setprecision(2) << R << std::endl;
return 0;
}
原文地址: https://www.cveoy.top/t/topic/uR0 著作权归作者所有。请勿转载和采集!