//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; }