The program is jumping the variables without at least I put the number I want to use on it. I can only put the first and then jump and it results in zero. I do not know if and error of the Dev-C ++ program or the code.
#include<stdio.h>#include<stdlib.h>#include<math.h>voidmain(){floatbasemaior,basemenor,altura,resultado;printf("entre com a base maior do trapezio: ");
scanf ("f%", &basemaior);
printf ("entre com a base menor do trapezio: ");
scanf ("f%", &basemenor);
printf ("entre com a altura do trapezio: ");
resultado=(basemaior+basemenor)*altura / 2;
printf ("\no calculo da area de um trapezio e: f%", resultado);
system ("PAUSE");
}