题解 | #句子逆序#
句子逆序
https://www.nowcoder.com/practice/48b3cb4e3c694d9da5526e6255bb73c3
line = input('', 's');
str_end = strsplit(line,' ');
str_end2 = {};
for ii = 1 : length(str_end)
str_end2{ii} = str_end{length(str_end) - ii + 1};
printf("%s ",str_end2{ii});
end
% str_now = line(ii);
% if str_now == ' '
% end
%end

