answersLogoWhite

0


Best Answer

To find the area and perimeter of a triangle in a C program, you would first need to input the three sides of the triangle. Then, you can calculate the perimeter by adding the three sides together. Next, you can calculate the semi-perimeter by dividing the perimeter by 2. Finally, you can use Heron's formula to calculate the area of the triangle using the semi-perimeter and the three sides. The C program would involve taking user input, performing the necessary calculations, and outputting the results.

User Avatar

ProfBot

βˆ™ 1w ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

βˆ™ 11y ago
include


#include


#include


void main()


{


int a,b,c:


float s,A,x=1/2;


clrscr();


printf(" three sides of a triangle\n");


scanf("%d %d %d",&a,&b,&c);


s=(a+b+c)/2;


A=pow((s(s-a)(s-b))(s-c)),x);


printf("AREA OF TRIANGLE:%d\n"'A);


gech();


}

This answer is:
User Avatar

User Avatar

Julian Cortes

Lvl 2
βˆ™ 3y ago

What is the perimmeter of the triangle

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C program to find area and perimeter of triangle?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you find the perimeter of a right angled triangle using the area?

how to find the perimeter of a right angled triangle using the area


How do you find the perimeter of a triangle if you know the area?

You cannot. For a given area, an equilateral triangle will have the smallest perimeter but that perimeter can be increased - without limit - without increasing the area.


What is the area of an equilateral triangle that has a perimeter of 71 feet?

Find the area of an equilateral triangle if its perimeter is 18 ft


How do you find the area a triangle with perimeter of 72?

Area of a triangle in square units = 0.5*base*height


What is the area and perimeter of triangle?

to find the area of a triangle you divide the base of the triangle by two and multiply your answer by the height .so your formula would be 1/2b times h to find the perimeter of a triangle u simply just add the sides.


Find the area of an equilateral triangle that has a perimeter of 21 inches Round the answer to one decimal place?

Find the area of an equilateral triangle that has a perimeter of 21 inches. Round the answer to one decimal place.


Can you find the area of a triangle when give the perimeter and 3 angles?

yes


How do you find the area and perimeter of a triangle?

Area:A=1/2bhA=Area b=Base h=HeightPerimeter:P=a+b+cP=Perimeter a,b,c=side lengths of the triangle


Suppose you know the perimeter and the height of an equilateral triangle explain how you would find the area of the triangle.?

The base is one third of the perimeter, half of the base times the height is the area.


How do you find the perimeter to a triangle?

The perimeter of a triangle is the distance around it. Add the lengths of the three sides to find the perimeter.


How do you find the perimeter of a triangle with the perimeter of a rectangle?

There is no reason for the perimeter of a triangle to have any relation to the perimeter of an unrelated rectangle!


How do you find the area of the right angle triangle given the base hypotenuse and perimeter?

It is: perimeter minus hypotenus+base = height Area = 0.5*base*height