Advertisement
Puntoinfinito

Medidor de bases C++

Aug 10th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. // By Puntoinfinito 10/08/12 12:38
  6.  
  7. int main()
  8. {
  9.     unsigned short int largo, ancho, base;
  10.     cout << "Que anchura tiene la figura >>> ";
  11.     cin >> ancho;
  12.     cout << "Y que altura >>> ";
  13.     cin >> largo;
  14.     base = (largo*ancho);
  15.     cout << "La figura tiene una base de : " << base << endl;
  16.     cin.sync();
  17.     cin.get();
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement