C # program to reverse a string s = input ( )
using System ; public class ReverseWords { public static void Main ( ) { string [ ] s = " i ▁ like ▁ this ▁ program ▁ very ▁ much " . Split ( ' ▁ ' ) ; string ans = " " ; for ( int i = s . Length - 1 ; i >= 0 ; i -- ) { ans += s [ i ] + " ▁ " ; } Console . Write ( " Reversed ▁ String : STRNEWLINE " ) ; Console . Write ( ans . Substring ( 0 , ans . Length - 1 ) ) ; } }