(üçgen)
using System;
using
System.Collections.Generic;
using
System.Text;
// CAFER KORKMAZ
//ÜÇGENİN ALAN VE ÇEVRE HESAPLAMASIDIR....
//13.03.2008
namespace ucgen1
{
class Program
{
static void Main(string[]
args)
{
double
taban, b, c, yuk, alan, cevre;
Console.WriteLine("\n taban kenarını giriniz:\n");
Console.WriteLine("\n b kenarını giriniz:\n");
Console.WriteLine("\n c kenarını giriniz:\n");
Console.WriteLine("\n yüksekliği giriniz giriniz:\n");
taban = Convert.ToDouble(Console.ReadLine());
b = Convert.ToDouble(Console.ReadLine());
c = Convert.ToDouble(Console.ReadLine());
yuk = Convert.ToDouble(Console.ReadLine());
alan = (taban * yuk) / 2;
cevre = taban + b + c;
Console.WriteLine("\n {0}alandır!\n",alan);
Console.WriteLine("\n {0}çevredir!\n", cevre);
Console.ReadLine();
}
}
}
Hiç yorum yok:
Yorum Gönder