Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace TrainingLab
- {
- class Program
- {
- static void Main(string[] args)
- {
- var length = double.Parse(Console.ReadLine());
- var width = double.Parse(Console.ReadLine());
- var workStationWidth = 70;//ширината на бюрото
- var workStationLength = 120;//дължината на бюрото
- var widthCm = width * 100 - 100;
- var totalWidth = Math.Floor(widthCm / workStationWidth);
- var totalLength = Math.Floor((length * 100) / workStationLength);
- var result = totalWidth * totalLength - 3;
- Console.WriteLine(result);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement