Write a program in Pascal (ABC) to solve a simple linear equation.

var
a, b, c, x: real;

begin
// implement input

writeln (‘Solving a simple linear equation ax + b = c’);
write (‘Enter coefficient a:’);
readln (a);
write (‘Enter b:’);
readln (b);
write (‘Enter c:’);
readln (c);

// calculate x
x: = (c-b) / a;

// output the result
writeln (‘The solution to the equation’, a, ‘x +’, b, ‘=’, c, ‘is x =’, x);
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.