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