enamsustcse

11150 Cola

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