Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- int p = int.Parse(Console.ReadLine());
- int courses = n / p;
- int ostatuk = n % p;
- if (ostatuk == 0)
- {
- Console.WriteLine(courses);
- }
- else if (ostatuk != 0)
- {
- Console.WriteLine(courses + ostatuk / ostatuk);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement