fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main (void)
  4. { float u2=63.5, b=1.86,u ,i, r, r3=4.8, r2;
  5. int r1=15, u1=120;
  6. i=(u+u2)/(r+r3);
  7. r=(r1*r2)/(r1+r2);
  8. u=(1)/(sqrt(b))*(u1+u2);
  9. printf("r2=%f, r=%f, u=%f, i=%f",r2,r,u,i);
  10. }
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
r2=0.000000, r=0.000000, u=134.548721, i=13.229166