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 ИзпитниЗадачи2016
- {
- class УчебнаЗала
- {
- static void Main(string[] args)
- {
- double h = double.Parse(Console.ReadLine());
- double w = double.Parse(Console.ReadLine());
- h = h * 100;
- w = w * 100;
- // Дължина на работните места (DRM)
- double DRM = Math.Floor((w - 100) / 70);
- // Широчина на работните места (SRM)
- double SRM = Math.Floor(h / 120);
- double Reshenie = (DRM * SRM) - 3;
- Console.ForegroundColor = ConsoleColor.Green;
- Console.WriteLine("Брой места: "+Reshenie);
- Console.Read();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement