Source Code
#include <iostream>
using namespace std;

int main() {
	
	int h, t;
	cin>>h;
	cin>>t;
	
	if(h>=1 && t<=100){
		int friends = 0;
		int kg = t;
			while(kg<=h){
				friends++;
				kg+=t;
			}
		cout<<friends;	
	}
	return 0;
}
Copy
The Tortoise and the Hare RaghadKhater
GNU G++17
2 ms
944 KB
Accepted