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 ClassHall
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Write("Въведете дължина: "); // 15m
- double lenght = double.Parse(Console.ReadLine());
- Console.Write("Въведете ширина: ");
- double width = double.Parse(Console.ReadLine()); // 8.9m
- double row = Math.Truncate(lenght / 1.2);
- double place = Math.Truncate((width - 1) / 0.7 * row - 3);
- Console.Write("Реда: ");
- Console.WriteLine(row);
- Console.Write("Места: ");
- Console.WriteLine(place);
- }
- }
- }
Add Comment
Please, Sign In to add comment