clear, clc x = input('Enter an integer: '); switch (x) case 0, disp('a'); case {1,2}, disp('b'); otherwise, disp('c'); end