Guest User

Untitled

a guest
Jul 22nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <math.h>
  4.  
  5. float const pi=4.0*atan(1.0);
  6. main(){
  7. float rf,r1,r2,v1,v2,out;
  8. rf = 10000.0;
  9. r1 = 4700.0;
  10. r2 = 1000.0;
  11. v1 = 5.0;
  12. v2 = 10.0;
  13. out = ((-rf/r1)*v1)*((-rf/r2)*v2);
  14. printf("answer is %.4f", out);
  15. while(!kbhit()){}
  16. }
Add Comment
Please, Sign In to add comment