when i tried to use decimal numbers the program skip the next step and go directly to the result
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <conio.h>
main()
{
int b,h,a;
system("cls");
printf("Base del rectangulo=");
scanf("%d",&b);
printf("Altura del rectangulo=");
scanf("%d",&h);
a=float(b)*float(h);
printf("Area=%d",a);
printf("\n\HECHO POR ANDRES EMILIANO JARA CANO 2B");
getch();
return 0;
}
Last edited on