Create a program that asks for the entry of three temperature values and checks if there is an ice melting
July 26, 2021 | education
| Create a program that asks for the entry of three temperature values and checks if there is an ice melting temperature (0) among them. Pascal program.
program zz1;
var a, b, c, d: integer; // set variables of integer type
begin
write (‘enter first temperature’); // enter three given numbers from the keyboard
read (a);
write (‘enter the second temperature’);
read (b);
write (‘enter third temperature’);
read (c);
if a> 0 then d: = 1; // check the condition
if b> 0 then d: = 1;
if c> 0 then d: = 1;
if d = 1
then write (‘among the entered numbers, the temperature of ice melting is’)
else write (‘there is no ice melting temperature among the entered numbers’);
END.
One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.