Find n | C # program to find the n - th term in series 1 3 6 10 . . . ; Function to find nth term ; Driver Code
using System ; class GFG { static int term ( int n ) { return n * ( n + 1 ) / 2 ; } public static void Main ( ) { int n = 4 ; Console . WriteLine ( term ( n ) ) ; } }