Analyze and write a program in Pascal. Evaluate n !, if the value of n is entered

Analyze and write a program in Pascal. Evaluate n !, if the value of n is entered by the user from the keyboard. If n = 1, then the screen displays n! =

var n: integer; otvet: real;
begin
writeln (‘Enter n:’);
readln (n);
otvet: = 1;
for var i: = 1 to n do otvet: = otvet * i;
writeln (‘n! =’, otvet);
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.