Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- int x = int.Parse(Console.ReadLine());
- int w = int.Parse(Console.ReadLine());
- int m = int.Parse(Console.ReadLine());
- int bricksInCourse = (m * w);
- double totalCourses = Math.Ceiling((double)x / bricksInCourse);
- Console.WriteLine(totalCourses);
- Console.ReadLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment