Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Program: fahrenheit.cc
- // Author: Yoan Pinzon
- // Date: Agosto 30, 2006
- #include <iostream>
- using namespace std;
- int main()
- {
- float celsius, fahrenheit;
- cout << "Centigrados a Fahrenheit" << endl;
- cout << "========================" << endl;
- cout << "Entre una temperatura en grados centigrados= "; cin >> celsius;
- fahrenheit = ( 9.0 * celsius ) / 5.0 + 32.0;
- cout << celsius << " grados centigrados equivalen a "
- << fahrenheit << " grados fahrenheit" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement