Program for n | C # program to find the nth EVEN number ; Function to find the nth odd number ; Driver code
using System ; class GFG { static int nthEven ( int n ) { return ( 2 * n ) ; } public static void Main ( ) { int n = 10 ; Console . WriteLine ( nthEven ( n ) ) ; } }