braveheart1989

05.Trapeziod Area

Mar 7th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _01.Подготовка
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double size = double.Parse(Console.ReadLine());
  14.             double size1 = double.Parse(Console.ReadLine());
  15.             double h = double.Parse(Console.ReadLine());
  16.             double area = ((size + size1) * h) / 2.0;
  17.             Console.WriteLine(area);
  18.         }
  19.     }
  20. }
Add Comment
Please, Sign In to add comment