Implicit typecasting converts the character into it 's equivalent ASCII
int decima = ch ; Console . WriteLine ( " Octal ▁ value : ▁ " + Octal ( decima ) ) ; Console . WriteLine ( " Decimal ▁ value : ▁ " + decima ) ; Console . WriteLine ( " Hexadecimal ▁ value : ▁ " + Hexadecimal ( decima ) ) ; Console . Write ( " HTML ▁ value : ▁ " + HTML ( decima ) ) ; }