Find an N | C # implementation of the above approach ; Function to print the required permutation ; Driver code
using System ; class GFG { static void findPermutation ( int N ) { for ( int i = 1 ; i <= N ; i ++ ) Console . Write ( i + " ▁ " ) ; } public static void Main ( ) { int N = 5 ; findPermutation ( N ) ; } }