Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Collections.Generic;
- namespace exampreparation
- {
- class exam
- {
- static void Main(string[] args)
- {
- int persons = int.Parse(Console.ReadLine());
- int capacity = int.Parse(Console.ReadLine());
- int courses = (int)Math.Ceiling((double)persons / capacity); // кастваме инт към метода, защото връща дабъл и кастваме дабъл към хората, защото ползваме деление
- Console.WriteLine(courses);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement