Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
348 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
	int n,b=0;
	cin >> n;
	while (n-5 >= 0)
	{
		b+=1;
		n -= 5;
	}
	while (n - 4 >= 0)
	{
		b += 1;
		n -= 4;
	}
	while (n - 3 >= 0)
	{
		b += 1;
		n -= 3;
	}
	while (n - 2 >= 0)
	{
		b += 1;
		n -= 2;
	}
	while (n - 1 >= 0)
	{
		b += 1;
		n -= 1;
	}
	cout << b;
}