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 TrainingLab
- {
- class Program
- {
- static void Main(string[] args)
- {
- var lenght = double.Parse(Console.ReadLine());
- var width = double.Parse(Console.ReadLine());
- var calculateLenght = Math.Truncate(lenght/1.2);
- var calculateWidth = Math.Truncate((width-1) / 0.7);
- var all = (calculateLenght * calculateWidth - 3);
- Console.WriteLine(Math.Truncate(all));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement