text: Program to print ASCII Value of all digits of a given number | C # program to convert the digits of a number to its ASCII values ; Function to convert digits of N to respective ASCII values ; Driver Code
code: using System ; public class GFG { static void convertToASCII ( int N ) { String num = N . ToString ( ) ; foreach ( char ch in num . ToCharArray ( ) ) { Console . Write ( ch + " ▁ ( " + ( int ) ch + " ) STRNEWLINE " ) ; } } public static void Main ( String [ ] args ) { int N = 36 ; convertToASCII ( N ) ; } }