also, it is easier if you only have 3 switch statements..such as

switch (num) , switch (tens), and switch (ones)