Concatenate suffixes of a String | C # implementation of the approach ; Function to print the expansion of the string ; Take sub - string from i to n - 1 ; Print the sub - string ; Driver code
using System ; class GFG { static void printExpansion ( String str ) { for ( int i = ( int ) str . Length - 1 ; i >= 0 ; i -- ) { String subStr = str . Substring ( i ) ; Console . Write ( subStr ) ; } } static public void Main ( String [ ] args ) { String str = " geeks " ; printExpansion ( str ) ; } }