Advertisement
Guest User

Untitled

a guest
Nov 25th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     unsigned long long int x, n;
  6.     int i = 0;
  7.  
  8.     while (scanf("%llu", &x) && i < 10) {
  9.         n = x / 2 + x / 3 + x / 4;
  10.  
  11.         if (n <= x) {
  12.             printf("%llu\n", x);
  13.         }
  14.         else {
  15.             printf("%llu\n", n);
  16.         }
  17.         i++;
  18.     }
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement