Match it with switch case
switch ( r ) { case 1 : Console . Write ( " one ▁ " ) ; break ; case 2 : Console . Write ( " two ▁ " ) ; break ; case 3 : Console . Write ( " three ▁ " ) ; break ; case 4 : Console . Write ( " four ▁ " ) ; break ; case 5 : Console . Write ( " five ▁ " ) ; break ; case 6 : Console . Write ( " six ▁ " ) ; break ; case 7 : Console . Write ( " seven ▁ " ) ; break ; case 8 : Console . Write ( " eight ▁ " ) ; break ; case 9 : Console . Write ( " nine ▁ " ) ; break ; case 0 : Console . Write ( " zero ▁ " ) ; break ; default : Console . Write ( " UnValid ▁ " ) ; break ; }