Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Elevator
- {
- class Program
- {
- static void Main(string[] args)
- {
- int numPeople = int.Parse(Console.ReadLine());
- int minPeople = int.Parse(Console.ReadLine());
- int counter = 0;
- int agent = 0;
- while (agent == 0)
- {
- numPeople -= minPeople;
- counter++;
- if (numPeople <= 0)
- {
- agent = 1;
- }
- }
- Console.WriteLine(counter);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement