//Surface area of a pyramid

#include <stdio.h>

void main()
{
float base, slantheight,total;

printf("Please enter base: ");
scanf("%f",&base);

printf("Please enter slant height");
scanf("%f",&slantheight);

total=(2 * base * slantheight) + (base * base);

printf("The surface area is: %f",total);


}