Advertisement
Draegon

Retangulo

Oct 28th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include "retangulo.h"
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     int alt,larg;
  9.  
  10.     cout << "Digite o valor da altura do retangulo: " << endl;
  11.     cin >> alt;
  12.     cout << endl;
  13.  
  14.     cout << "Digite agora o valor da largura do retangulo: " << endl;
  15.     cin >> larg;
  16.     cout << endl;
  17.  
  18.     Retangulo r (alt,larg);
  19.  
  20.     cout << "O valor da area do retangulo eh: " << r.area() << endl;
  21.  
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement