Advertisement
rengetsu

Codeforces_617A

Jul 31st, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. //Codeforces Round 617A
  2. #include <iostream>
  3. using namespace std;
  4. void slonik(int x)
  5. {
  6.     int answ=0;
  7.     while(x>0)
  8.     {
  9.         x-=5;
  10.         answ++;
  11.     }
  12.     cout << answ;
  13. }
  14. int main()
  15. {
  16.     int x;
  17.     cin >> x;
  18.     slonik(x);
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement