题解 | #数字颠倒#
数字颠倒
https://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
line = input(''); line_num = num2str(line); line_num_fliplr = []; for ii = 1 : length(line_num) line_num_fliplr(ii) = line_num(length(line_num) - ii + 1); end printf("%s\n",line_num_fliplr);