monceypants274

homework 1 #2

Apr 22nd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. using System;
  2.                    
  3. public class Program
  4. {
  5.     public static void Main()
  6.     {
  7.         int a = int.Parse(Console.ReadLine());
  8.         int b = int.Parse(Console.ReadLine());
  9.         int h = int.Parse(Console.ReadLine());
  10.         int S = ((a+b)*h)/2;
  11.         Console.WriteLine("Wall 1 is :" + a);
  12.         Console.WriteLine("Wall 2 is :" + b);
  13.         Console.WriteLine("Height is :" + h);
  14.         Console.WriteLine("Litseto e " + S);
  15.         }
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment