#include <stdio.h>
int main() {
float base, altura, perimetro;
printf("Base: ");
scanf("%f", &base);
printf("Altura: ");
scanf("%f", &altura);
perimetro = 2*(base+altura);
printf("Perimetro = %.2f", perimetro);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: