So it will be correct both from a logical point of view and from the point of view of formatting:
program Project1; {$APPTYPE CONSOLE} // Инструкция для Делфи, что это консольное приложение uses SysUtils; var x, y: real; begin // Ждем ввода значения Х от пользователя write('x='); readln(x); // Логика программы if (x > 1) then y := cos(x) / (x * x * x + 3 * sin(x) + 8) else y := x * x * x + 3 * sin(x) + 8; // <-- Ошибка была здесь, пропущена ; // Показываем результат writeln('y=', y:0:3); readln; end.
Notice how proper formatting allows you to immediately see the whole program and notice errors in it.
PS Just in case, cos trigonometric functions expect an angle in radians at the entrance, so if the user enters a number in degrees, you will need to convert it to radians.