Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Task 005, Chapter 2.0
- using System;
- public class TrapeziodArea
- {
- static void Main()
- {
- double a = double.Parse(Console.ReadLine());
- double b = double.Parse(Console.ReadLine());
- double h = double.Parse(Console.ReadLine());
- double area = (a + b) * h / 2.0;
- Console.WriteLine("Trapeziod area = " + area);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment