Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <cmath>
  4. #include <iostream>
  5.  
  6. using namespace std;
  7.  
  8. float qtd ( float A, float B, float C);
  9. void dim (float qtdlatas);
  10.  
  11. float qtd (float A, float B, float C){
  12. float resqtd, area;
  13. area = (2*A*C)+ (2*B*C)+ (A*B);
  14. resqtd = (area/4)/18;
  15. return (resqtd);
  16. }
  17.  
  18. void dim (float qtdlatas){
  19. float preco;
  20. preco=qtdlatas*150.00;
  21. cout<< "preco = "<< preco;
  22. }
  23.  
  24. int main ()
  25. {
  26. float c, l, h;
  27. cout<< "Digite c =";
  28. cin>> c;
  29. cout<< "Digite l =";
  30. cin>> l;
  31. cout<< "Digite h =";
  32. cin>> h;
  33.  
  34. dim(qtd(c,l,h));
  35.  
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement