Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- double a,b,c;
- cin>>a>>b>>c;
- double tr = (0.5*(a*c));
- cout<<"TRIANGULO: "<<tr<<fixed<<setprecision(4)<<endl;
- double cir = (3.14159*c*c);
- cout<<"CIRCULO: "<<cir<<fixed<<setprecision(3)<<endl;
- double tra = (.5*(a+b)*c);
- cout<<"TRAPEZIO: "<<tra<<fixed<<setprecision(3)<<endl;
- double qua = (b*b);
- cout<<"QUADRADO: "<<qua<<fixed<<setprecision(3)<<endl;
- double ret = (a*b);
- cout<<"RETANGULO: "<<ret<<fixed<<setprecision(3)<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement