Advertisement
gidmakus

calculate_acceletion

Apr 28th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <coinio.h>
  2. #include <stdio.h>
  3.  
  4. void main()
  5. {
  6.     int u,v,t;
  7.     float a;
  8.    
  9.     printf("Please initial velocity:");
  10.     scanf("%d",&u);
  11.     printf("Please final velocity:");
  12.     scanf("%d", $v);
  13.     printf("Please time taken:");
  14.     scanf("%d",$t);
  15.  
  16.         a =(v-u)/t;
  17.         printf("The acceleration of the car is:%f", a);
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement