Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
240 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
    int x, n = 5, i = 0;
    cin >> x;

    if (x % n != 0)
    {
        i++;
    }
    while (x / n != 0)
    {
        x -= n;
        i++;
    }
    cout << i;
}