answersLogoWhite

0


Best Answer

//Written in C++. ALFRED OMONDI ORIMBO (orimbo@gmail.com)

# include

# include

using namespace std;

void main()

{

double s,a,b,c,area;

cout<<"type a value for first side of triangle: ";

cin>>a;

cout<<"\ntype a value for second side of triangle: ";

cin>>b;

cout<<"\ntype a value for third side of triangle: ";

cin>>c;

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

area = sqrt(s*(s-a)*(s-b)*(s-c));

cout<<"\narea = "<

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: D Write a program that reads 3 sides of a triangle and calculates the perimeter of the triangle and the area using the formulae?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a qbasic program to find area and circumerence of a circle?

Write a program that calculates the area of a triangle in QBASIC


What are the answers for Programming logic and design chapter 6?

program calculates


How do you write a c program which calculates the value of money at the end of each year of investment?

Reference:cprogramming-bd.com/c_page3.aspx#calculates the value of money


Using while loop write a program which calculates the product of digits from 1 to 5 and also show these nos vertically?

Using while loop, write a program which calculates the product of digits from 1 to 5 and also show these no's vertically.


Is a program with no input an incorrect program?

No, as long as it calculates something, displays something, or otherwise has an output that benefits the user, it is a program. It could be a program that makes a random number, or a program that tells the user a joke from a database.


Was there a program called the triangle?

yea


How do you write a program that calculates the sum of the matrix elements given numbers?

ring me and ill explain - 086 22222222222222227 ring me


Using a computer how do you create a program that calculates the circumference and area of a circle?

a circle has an area of 36pie square centimeters what is the circumference ?


What does the computer program Md5sum do?

Md5sum is a program that verifies and calculates 128-bit MD5 hashes. The MD5 checksum is seen as the compact digital fingerprint that is unique to each file.


C program to find area and perimeter of triangle?

include #include#includevoid 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();}


Which application software calculates numbers such as a teachers grade book program?

Microsoft office excel you can use for any kind of calculations


Program to calculate area of triangle?

You don't need a program; the formula is b*h/2.