#include <iostream>
int main()
{
float V;
while(1)
{
system("title Convierte temperaturas by P43L0 and Placa4"); system("color 08");
std::cout << "\n\n1. Grados Fahrenheit a Centigrados \n2. Grados Centigrados a Fahrenheit \n3. Grados Fahrenheit a Kelvin"
<< "\n4. Grados Kelvin a Fahrenheit \n5. Grados Kelvin a Centigrados \n6. Grados Centigrados a Kelvin \n Elige la opcion deseada: ";
std::cin >> V;
if(V == 1){
std::cout << "\n" << "Escribe los grados Fahrenheit: ";
std::cin >> V;
std::cout << "\n" << V << " grados fahrenheit = " << (V - 32) /1.8 << " grados centigrados";}
else if(V == 2){
std::cout << "\n" << "Escribe los grados centigrados: ";
std::cin >> V;
std::cout << "\n" << V << " grados centigrados = " << (V * 8) + 32 << " grados fahrenheit";}
else if(V == 3){
std::cout << "\n" << "Escribe los grados Fahrenheit: ";
std::cin >> V;
std::cout << "\n" << V << " grados Fahrenheit = " << (V +459.67) /1.8 << " grados kelvin";}
else if(V == 4){
std::cout << "\n" << "Escribe los grados Kelvin: ";
std::cin >> V;
std::cout << "\n" << V << " grados Kelvin = " << (V*1.8)-459.67 << " grados fahrenheit";}
else if(V == 5){
std::cout << "\n" << "Escribe los grados Kelvin: ";
std::cin >> V;
std::cout << "\n" << V << " grados Kelvin = " << V + 273 << " grados centigrados";}
else if(V == 6){
std::cout << "\n" << V << "Escribe los grados centigrados: ";
std::cin >> V;
std::cout << "\n" << V << " grados centigrados = " << V - 273 << " grados centigrados";}
}
return 0;
}