CBSE BOARD X, asked by kandalauday4298, 5 hours ago

write the c++ program that will ask the user to input the base and the height to find the area of triangle

Answers

Answered by badyuva007
1

Answer:

what will you do to recive him

Answered by samarthcv
1

Answer:

Here is program for calculating area of traingle in c.

#include <stdio.h>

int main()

{

float base, height, area;

/* Input base and height of triangle */

printf("Enter base of the triangle: ");

scanf("%f", &base);

printf("Enter height of the triangle: ");

scanf("%f", &height);

/* Calculate area of triangle */

area = (base * height) / 2;

/* Print the resultant area */

printf("Area of the triangle = %.2f sq. units", area);

return 0;

}

Explanation:

Similar questions
Math, 3 hours ago