# Make a program for calculating the values of the function: y = 23x + 1 for integer values of x from the interval [-15.5].

July 27, 2021 | education

| Let’s compose a program in the Pascal programming language to calculate the values of the function: y = 23 * x + 1 for integer values of x from the interval [-15.5]:

programm vychisleniye;

var y, x: integer;

writeln (‘Enter an integer value for the variable x from -15 to 5’);

readln (x);

if x <-15 or x> 5

then

writeln (‘The specified number does not match the specified interval’);

else

y: = 23 * x + 1;

writeln (‘The received value of the function at the given value of the parameter =’ y);

readln (y);

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.