Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Exact_Sum_of_Real_Numbers
- {
- class Exact_Sum_of_Real_Numbers
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int courses = 0;
- int people = 0;
- courses = (int)Math.Ceiling((double)n / b);
- Console.WriteLine(courses);
- Console.ReadLine();
- }
- }
- }
- //https://softuni.bg/trainings/resources/officedocument/11848/lab-problem-descriptions-programming-fundamentals-january-2017
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement