Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int count, a, n = 0;
  5. scanf("%d", &n);
  6. while (n >= 15) {
  7. a = n / 15;
  8. count = count + a;
  9. n = n % 15;
  10. n = n + a * 5;
  11. }
  12. printf("%d",count);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement