Don't like ads? PRO users don't see any ads ;-)
Guest

Medidor de bases C++

By: Puntoinfinito on Aug 10th, 2012  |  syntax: C++  |  size: 0.40 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }