• Lenguaje

    Pascal

  • Descripción

    Convierte grados Celsius a grados Fahrenheit.

1
2
3
4
5
6
7
8
9
10
11
12
13
program GradosCelsiusAFahrenheit;
uses crt;

var grados_celsius, grados_fahrenheit : real;
begin
    write ('Ingresa el valor de grados celsius: ');
    readln (grados_celsius);
    grados_fahrenheit := 1.8*grados_celsius+32;
    writeln ('Valor de grados fahrenheit: ', grados_fahrenheit:0:6);
    writeln;
    write ('Presiona una tecla para terminar . . . ');
    readkey;
end.