Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int count, a, n = 0;
- scanf("%d", &n);
- while (n >= 15) {
- a = n / 15;
- count = count + a;
- n = n % 15;
- n = n + a * 5;
- }
- printf("%d",count);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement