Area Y Perimetro Triangulo.txt

  • Uploaded by: AňdřėšPôŝtĤč
  • 0
  • 0
  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Area Y Perimetro Triangulo.txt as PDF for free.

More details

  • Words: 93
  • Pages: 1
/*Nombre: Andres Felipe Gutierrez Jimenez *Descripcion: Hallar area y perimetro de untriangulo *Fecha: 10 de Febrero 2019 * * */

//Definir variables double baase, altura, area, perimetro,hipo,sin; // entramos valores Console.WriteLine("Ingrese valor de la base"); baase = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("Ingrese valor de la altura"); altura= Convert.ToDouble(Console.ReadLine()); //realizamos calculos area = ((baase * altura) / 2); sin = ((baase * baase) + (altura * altura)); hipo= Math.Pow(sin,0.5); perimetro = baase + altura + hipo; //mostramos calculos Console.WriteLine($"el area del triangulo es {area}"); Console.WriteLine($"el perimetro del triangulo es {perimetro}"); Console.WriteLine($"la hipotenusa del triangulo es {hipo}"); Console.ReadKey();

Related Documents