#include <stdio.h> int main() { float r1,r2,zhi=0.0f; scanf("%f%f",&r1,&r2); zhi=(r1*r2)/(r1+r2); printf("%.1f",zhi); return 0; }
并联电路公式,注意小数点