Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- unsigned long long int x, n;
- int i = 0;
- while (scanf("%llu", &x) && i < 10) {
- n = x / 2 + x / 3 + x / 4;
- if (n <= x) {
- printf("%llu\n", x);
- }
- else {
- printf("%llu\n", n);
- }
- i++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement