Solution of 1043 number !
please do not copy it do it yourself use this as a guideline :)
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main ()
{
double a,b,c;
cin >> a >> b >> c;
if(a<b+c&&b<a+c&&c<a+b)
{
cout << "Perimetro = "<<fixed << setprecision(1)<< a+b+c<<endl;
}
else cout << "Area = "<<fixed << setprecision(1)<< (((a+b)/2)*c)<<endl;
return 0;
}
If you do not understand please leave a message here.
or mail us mechaboo786@gmail.com
or you can leave a message at fb . Link :- https://www.facebook.com/mechaboo/
please do not copy it do it yourself use this as a guideline :)
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main ()
{
double a,b,c;
cin >> a >> b >> c;
if(a<b+c&&b<a+c&&c<a+b)
{
cout << "Perimetro = "<<fixed << setprecision(1)<< a+b+c<<endl;
}
else cout << "Area = "<<fixed << setprecision(1)<< (((a+b)/2)*c)<<endl;
return 0;
}
If you do not understand please leave a message here.
or mail us mechaboo786@gmail.com
or you can leave a message at fb . Link :- https://www.facebook.com/mechaboo/
Comments
Post a Comment