using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace orn4
{
class Program
{
static void Main(string[] args)
{
double a, h,hacim,yanal,topalan;
Console.Write("Yükseklik gir: ");
double.TryParse(Console.ReadLine(), out h);
Console.Write("Taban gir: ");
double.TryParse(Console.ReadLine(), out a);
double kok = Math.Sqrt((4*h*h)+(a*a));
hacim = a * a * h / 3;
yanal = a * kok;
topalan = a * (kok + a);
Console.Write("hacim= " + hacim);
Console.Write("\nyanal alan= " + yanal);
Console.Write("\ntoplam alan= " + topalan);
Console.ReadKey();
}
}
}
0 yorum:
Yorum Gönder