Guest User

Untitled

a guest
Jul 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <math.h>
  4.  
  5. const float pi = 4.0 * atan(1.0);
  6.  
  7. main(){
  8. float P, E, r, f;
  9. P = 1.5 * pow(10.0 , -9.0);
  10. E = 8.85 * pow(10,-12);
  11. r = 1.0;
  12. f = P / ( 2 * pi * E * r);
  13. printf("Electric field is = %f",f);
  14. while(!kbhit()){
  15. }
  16. }
Add Comment
Please, Sign In to add comment