Print given sentence into its equivalent ASCII form | C # implementation for converting a string into it 's ASCII equivalent sentence ; Function to compute the ASCII value of each character one by one ; Driver function
using System ; class GeeksforGeeks { static void ASCIISentence ( string str ) { int l = str . Length ; int convert ; for ( int i = 0 ; i < l ; i ++ ) { convert = str [ i ] ; Console . Write ( convert ) ; } } public static void Main ( ) { string str = " GeeksforGeeks " ; Console . WriteLine ( " ASCII ▁ Sentence : " ) ; ASCIISentence ( str ) ; } }