digit = input('decimal digit '); % s6dd3.m
switch (digit) 
case { 1 , 3 , 5 , 7 , 9 }
  fprintf(' Odd  digit %d \n',digit);
case { 0 , 2 , 4 , 6 , 8 }
  fprintf(' Even digit %d \n',digit);
otherwise
  fprintf(' Unrecognized digit %s\n',digit);
end
