In this Program, we will calculate the Perimeter of the Triangle using Formula Perimeter=(a+b+c) in C++.Where a , b , and c are the side lengths of Triangle.
Program to Calculate Perimeter of Triangle in C++
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include<iostream> using namespace std; int main() { float a,b,c,peri; cout<<"Enter value of a : "; cin>>a; cout<<"Enter value of b : "; cin>>b; cout<<"Enter value of c : "; cin>>c; peri=a+b+c; cout<<"Perimeter of Triangle : "<<peri; return 0; } |
write c++ program that will compute and print the perimeter of a triangle , perimeter of a triangle, circumstance of a circle and area of a trapezoid. the result must be in floating point precision with its measurement unit (centimeter/cm).
https://www.code4example.com/cpp/c-programs-examples-with-output/
where is the condition if a,b,c are c,b+c>a, c+a>b ?
HARD TO LEARN