编程之电阻

来源:互联网 发布:iphone qq tim 知乎 编辑:程序博客网 时间:2024/05/21 00:17
#include <stdio.h>#include <stdlib.h>int main(){    float R1,R2,R;    printf("Enter two numbers:\n");    scanf("%f%f",&R1,&R2);    R=1/(1/R1+1/R2);    printf("The answer is:\n");    printf("%f\n",R);    return 0;}


 

1 0