Advertisement
hkshakib

cpp

Feb 15th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. double a,b,c;
  6. cin>>a>>b>>c;
  7. double tr = (0.5*(a*c));
  8. cout<<"TRIANGULO: "<<tr<<fixed<<setprecision(4)<<endl;
  9. double cir = (3.14159*c*c);
  10. cout<<"CIRCULO: "<<cir<<fixed<<setprecision(3)<<endl;
  11. double tra = (.5*(a+b)*c);
  12. cout<<"TRAPEZIO: "<<tra<<fixed<<setprecision(3)<<endl;
  13. double qua = (b*b);
  14. cout<<"QUADRADO: "<<qua<<fixed<<setprecision(3)<<endl;
  15. double ret = (a*b);
  16. cout<<"RETANGULO: "<<ret<<fixed<<setprecision(3)<<endl;
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement