ejecutar algoritmo secuencial, condicional
1 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
%Script: Reverse order of characters in strings
%Wilmer Alexander Ticona alexanderticona.com
clc
clear all
num=input('Ingrese número a invertir: ');
invn=num2str(num);
invn=reverse(invn);
invn=str2num(invn);
fprintf('El número invertido es: %1.0f unidades \n',invn)
1 个评论
Thanks for asking. Please accept my proposal if your questions were resolved. I remain at your disposal for any questions.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!