Advertisement
idsystems

Practica 13 - Pies

Jan 16th, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. // Program: pies2cms.cc
  2. // Author:  Yoan Pinzon
  3. // Date:    Agosto 30, 2006
  4.  
  5. #include <iostream>
  6.  
  7. using namespace std;
  8.  
  9. int main()
  10. {
  11.    float cms, pies;
  12.  
  13.    cout << "Convertidor de Pies a Centimetros" << endl;
  14.    cout << "=================================" << endl;
  15.  
  16.    cout << "Entre una longitud en centimetros = ";
  17.    cin >> cms;
  18.  
  19.    pies = cms / 30.48;
  20.  
  21.    cout << cms << " centimetros = " << pies << " pies" << endl;
  22.  
  23.    return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement