Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <cmath>
- #include <iostream>
- using namespace std;
- float qtd ( float A, float B, float C);
- void dim (float qtdlatas);
- float qtd (float A, float B, float C){
- float resqtd, area;
- area = (2*A*C)+ (2*B*C)+ (A*B);
- resqtd = (area/4)/18;
- return (resqtd);
- }
- void dim (float qtdlatas){
- float preco;
- preco=qtdlatas*150.00;
- cout<< "preco = "<< preco;
- }
- int main ()
- {
- float c, l, h;
- cout<< "Digite c =";
- cin>> c;
- cout<< "Digite l =";
- cin>> l;
- cout<< "Digite h =";
- cin>> h;
- dim(qtd(c,l,h));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement