Advertisement
dllbridge

Untitled

Nov 17th, 2023
863
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1.  
  2.  
  3.  
  4. #include   <stdio.h>
  5.  
  6.  
  7.  
  8.  
  9. float fMass  = 1000.00,
  10.       fGMoob =    9.81,//1.61,
  11.       fV     =    0.00;
  12.  
  13.  
  14. float Vchange(float t);
  15.  
  16.  
  17.  
  18. ////////////////////////////////////////////////////
  19. int main()                                        //
  20. {
  21.  
  22.     Vchange(6.00);
  23.    
  24.     printf("V result = %.2f", fV);
  25.  
  26. }
  27.  
  28.  
  29. ///////////////////////////////////////////
  30. float Vchange(float t)
  31. {
  32.    
  33.     fV = fV - (fGMoob * t);
  34.  
  35. return fV; 
  36. }
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement