enamsustcse

10071 Back to High School Physics

May 1st, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int v,s,t;
  6.  
  7.     while(scanf("%d %d", &v, &t) == 2)
  8.           {
  9.               s = 2 * v * t;
  10.               printf("%d\n", s);
  11.           }
  12.         return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment