viernes, 16 de noviembre de 2018

PROGRAMA PARA HALLAR AREA Y PERIMETRO DE UN ROMBO


PROGRAMA PARA HALLAR AREA Y PERIMETRO DE UN ROMBO
#include <conio.h>
#include <stdio.h>
#include <math.h>



int main ()
{
                int a,d,d1;
                float area,per;
                               printf ("\n Rombo:");
                               printf ("\n Introduzca lado:");
                               scanf ("%d",a);
                               printf ("\n Introduzca diagonal menor:");
                               scanf ("%d",d);
                               printf ("\n Introduzca diagonal mayor:");
                               scanf ("%d",d1);
                              
                               per = pow(a,4);
                               printf ("\n EL PERIMETRO DEL ROMBO ES: %.2f", per) ;
                              
                               area = d1*d/2;
                               printf ("\n EL AREA DEL ROMBO ES: %.2f", area) ;
                return 0;
}

No hay comentarios.:

Publicar un comentario