%% Problema 8 guia N° 001 clearvars; close all; clc A = input('Ingrese digito A = '); B = input('Ingrese digito B = '); C = input('Ingrese digito C = '); x = A*100 + B*10 + C; fprintf('Resultado = %d\n',x); %% alternativamente % ingresamos dígitos como caracteres, usando opción 's' en función input A = input('Ingrese digito A = ','s'); B = input('Ingrese digito B = ','s'); C = input('Ingrese digito C = ','s'); % convertimos caracteres en números con funciones str2double x = str2double([A B C]); fprintf('Resultado = %d\n',x); % Leer help de str2double help str2double