#include <stdio.h>
int main(void) {
// your code goes here
return 0;
}
// **************************************************
// Function: calcAreaOfRectangle
//
// Description: Calculates the area of a Rectangle
//
//
// Parameters: base - base of the Rectangle
// height - height of the Rectangle
//
// Returns: area - area of Rectangle
//
// ***************************************************
float calcAreaOfTriangle(float width, float height) // float width and height
{
float area; // area of the Rectangle
// calculate area
area = 0.5 * width * height; // Area of triangle is .5 x W x H plugin variables
// TODO - add missing code HERE
printf("Enter the width of the shape:\n"); // prompt for the width
printf("Enter the height of the shape:\n");
return (area);
} //calcAreaOfTriangle
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCglyZXR1cm4gMDsKfQovLyAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgovLyBGdW5jdGlvbjogY2FsY0FyZWFPZlJlY3RhbmdsZQovLwovLyBEZXNjcmlwdGlvbjogQ2FsY3VsYXRlcyB0aGUgYXJlYSBvZiBhIFJlY3RhbmdsZQovLwovLwovLyBQYXJhbWV0ZXJzOiBiYXNlICAgLSBiYXNlIG9mIHRoZSBSZWN0YW5nbGUKLy8gICAgICAgICAgICAgaGVpZ2h0IC0gaGVpZ2h0IG9mIHRoZSBSZWN0YW5nbGUKLy8KLy8gUmV0dXJuczogICAgYXJlYSAtIGFyZWEgb2YgUmVjdGFuZ2xlCi8vCi8vICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgoKZmxvYXQgY2FsY0FyZWFPZlRyaWFuZ2xlKGZsb2F0IHdpZHRoLCBmbG9hdCBoZWlnaHQpIC8vIGZsb2F0IHdpZHRoIGFuZCBoZWlnaHQKewoKICAgIGZsb2F0IGFyZWE7IC8vIGFyZWEgb2YgdGhlIFJlY3RhbmdsZQogIAogICAgLy8gY2FsY3VsYXRlIGFyZWEKICAgIGFyZWEgPSAwLjUgKiB3aWR0aCAqIGhla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