You are on page 1of 1

double BAR, ALR, AR, PR, BAT, ALT,AT,PT, RD,AC,PC,BMT,BNT,LMT,LNT,ATRA,PTRA,HT;

Console.WriteLine("\n\n\n");
Console.WriteLine("\t\t\tPrograma que calcula Area y Perimetro");
Console.WriteLine("\t\t\t*********************");
Console.Write("\n\t Ingrese Base rectang:");
BAR = double.Parse(Console.ReadLine());
Console.Write("\n\t Ingrese Altura rectang:");
ALR = double.Parse(Console.ReadLine());
Console.Write("\n\t Ingrese Base triang:");
BAT = double.Parse(Console.ReadLine());
Console.Write("\n\t Ingrese Altura triang:");
ALT = double.Parse(Console.ReadLine());
Console.Write("\n\t Ingrese RADIO :");
RD = double.Parse(Console.ReadLine());
Console.Write("\n\t Ingrese BASE MAYOR TRAP :");
BMT= double.Parse(Console.ReadLine());
Console.Write("\n\t Ingrese BASE MENOR TRAP :");
BNT = double.Parse(Console.ReadLine());
Console.Write("\n\t Ingrese LADO MAYOR TRAP :");
LMT = double.Parse(Console.ReadLine());
Console.Write("\n\t Ingrese LADO MENOR TRAP :");
LNT = double.Parse(Console.ReadLine());
Console.Write("\n\t Ingrese ALTURA TRAP :");
HT = double.Parse(Console.ReadLine());
AR = (BAR * ALR);
PR = (BAR + ALR);
AT = (BAT * ALT) / 2;
PT = BAT + ALT;
AC = RD * RD * 3.1416;
PC = RD * 2 * 3.14159265359;
ATRA = ((BMT + BNT) * HT) / 2;
PTRA = BMT + BMT + LMT + LNT;
Console.WriteLine("\t\t\t*****************");
Console.WriteLine("\t\t\tEl Area RECT es:" + AR);
Console.WriteLine("\t\t\t*****************");
Console.WriteLine("\t\t\tEl Perimetro RECT es:" + PR);
Console.WriteLine("\t\t\t*****************");
Console.WriteLine("\t\t\tEl Area TRIANG es:" + AT);
Console.WriteLine("\t\t\t*****************");
Console.WriteLine("\t\t\tEl Perimetro TRIANG es:" + PT);
Console.WriteLine("\t\t\t*****************");
Console.WriteLine("\t\t\tEl Area CIRC es:" + AC);
Console.WriteLine("\t\t\t*****************");
Console.WriteLine("\t\t\tEl Perimetro CIRC es:" + PC);
Console.WriteLine("\t\t\t*****************");
Console.WriteLine("\t\t\tEl Area RECT es:" + AR);
Console.WriteLine("\t\t\t*****************");
Console.WriteLine("\t\t\tEl Area TRAP es:" + ATRA);
Console.WriteLine("\t\t\t*****************");
Console.WriteLine("\t\t\tEl Perimetro TRAP es:" + PTRA);
Console.WriteLine("\t\t\t*****************");
Console.WriteLine("\n\n\n Fin del programa");

Console.ReadLine();

You might also like