Write a program that determines whether a number entered from the keyboard is negative

Write a program that determines whether a number entered from the keyboard is negative, display a message about this on the screen.

program zz1;

var n: integer; // introduce a variable of integer type

begin

write (‘enter a number’); // enter a number from the keyboard

read (n);

if n <0 then write (‘number’, n, ‘is negative’) else write (‘number’, n, ‘is not negative’);

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.