This question was created from Week 3 Hands-On Lab
This question was created from Week 3 Hands-On Lab https://www.coursehero.com/file/13249840/Week-3-Hands-On-Lab/
Here is the original code: #include int main () { /* variable definition: */ float base, height, area; /* Prompt user for base */ printf(“Enter the base of the triangle: \n”); // Input the base scanf(“%f”, &base); /* Prompt user for height */ printf(“Enter the height of the triangle: \n”); // Input the base scanf(“%f”, &height); // Calculate the Area area= 0.5 * (base * height); // Print the result printf(“Area is : %f\n”, area); return 0; } The C code calculates area What do you change to calculate perimeter. I know that Perimeter = A+B+C In the example provided, all the person did was change the word are in the code to perimeter. I know that is not correct.
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
