• Lenguaje

    Pascal

  • Descripción

    Convierte grados Fahrenheit a grados Celsius.

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

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