ejecutar algoritmo secuencial, condicional
조회 수: 2 (최근 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!