That's pretty close.
You need to add "\n" at the end of each fprintf statement to put the next part on a new line.
And, you're meant to round the number, not cull the decimal places (ie, your code would say that the nearest integer to 2.9 is 2 rather than 3)
Also, in the odd/even part, you print "x" rather than the actual rounded number, that needs fixing.
\\---------------------\\
%Getting user to input number
n = input('Enter number: ');
%Round off number to nearest integer
rounded_input = round(n);
%Print result
x = fprintf('Nearest integer is %g\n', rounded_input);
%Determine if odd or even and print
if mod(rounded_input,2) == 0
fprintf('%g is even\n', rounded_input);
else
fprintf('%g is odd\n', rounded_input);
end