MATLAB: How to change output from column to row

loops

a = input('Enter first number:');
b = input('Enter second number:');
for A=a:b
reshape(A,1,[]);
fprintf('%d \n', A)
end
this is my code but I cant change the answer to horizontal orientation
The output goes like this
Enter first number:1
Enter second number:3
1
2
3

Best Answer

You are printing in a loop with a line return at each step. This works :
a = input('Enter first number:');
b = input('Enter second number:');
fprintf('%d ', a:b);
fprintf('\n');