Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

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/

13249840-75109.jpeg

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.

13249840-75109.jpeg

Step

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"