Advertisement
idsystems

Cpp_Practica25 - Peso

Jan 30th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. // Program: peso.cc
  2. // Author:  Yoan Pinzon
  3. // Date:    Agosto 30, 2006
  4.  
  5. #include <iostream>
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10.    float libras, kilogramos;
  11.  
  12.    cout << "Libras a Kilogramos" << endl;
  13.    cout << "===================" << endl;
  14.  
  15.    cout << "Entre el peso en libras= "; cin >> libras;
  16.    kilogramos = libras * 0.453592;
  17.    cout << libras << " libras equivalen a " << kilogramos << " Kg" << endl;
  18.    return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement