题解 | #牛牛的并联电路#
牛牛的并联电路
https://www.nowcoder.com/practice/6e13936b6fc54f52ac22efd6c8e7fef3
#include <stdio.h> int main() { float a,b; scanf("%f%f",&a,&b); float c; c=1.0/a+1.0/b; printf("%.2f",1.0/c); return 0; }
牛牛的并联电路
https://www.nowcoder.com/practice/6e13936b6fc54f52ac22efd6c8e7fef3
#include <stdio.h> int main() { float a,b; scanf("%f%f",&a,&b); float c; c=1.0/a+1.0/b; printf("%.2f",1.0/c); return 0; }
相关推荐