using System;
class Program
{
 static void Main()
 {
 int a, b, h, alan, hacim;
 Console.Write("Prizmanın a kenarını gir:");
 string str = Console.ReadLine();
 int.TryParse(str, out a);
 Console.Write("Prizmanın b kenarını gir:");
 str = Console.ReadLine();
 int.TryParse(str, out b);
 Console.Write("Prizmanın h kenarını gir:");
 str = Console.ReadLine();
 int.TryParse(str, out h);
 alan = 2 * (a * b + a * h + b * h);
 hacim = a * b * h;
 Console.WriteLine("Alan:{0}, Hacim:{1}", alan, hacim);
 Console.ReadLine();
 }
}
 
 
 
 
0 yorum:
Yorum Gönder