Tarea-perimetro

  • June 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 Tarea-perimetro as PDF for free.

More details

  • Words: 88
  • Pages: 1
//ejemplo perimetro #include <stdio.h> #include int main () { int int int int

val1 = 0; val2 = 0; val3 = 0; perimetro = 0;

printf ("Para calcular el perimetro de un triangulo precione ENTER..."); getche (); clrscr (); printf ("Ingrese el valor de unos de los lados ."); scanf ("%i" ,&val1); printf ("Ingrese segundo valor ."); scanf ("%i" ,&val2); printf ("Ingrese tercer valor scanf ("%i" ,&val3);

.");

perimetro = val1 + val2 + val3; printf ("El perimetro del triangulo es : %i" ,perimetro); return 0; }