%% ejercio clearvars close all; clc; N = input('N = '); P = 0; while N >= 2 P = P + 1; N = N/2; end; fprintf('N = %f\n',N); fprintf('P = %d\n',P);