#include int main(void) { char shape; double area, base, height, side; printf("Do you have a square or triangle (s/t)? "); scanf("%c",&shape); if (shape == 's') { printf("What is the side of your square? "); scanf("%lf",&side); area = side * side; } //if else { printf("What is the base and height of your triangle? "); scanf("%lf %lf",&base, &height); area = base * height / 2; } //else printf("The area is %f\n",area); return 0; } //main