Find the distance covered to collect items at equal distances | C # program to calculate the distance for given problem ; function to calculate the distance ; Driver program
using System ; class GFG { public static int find_distance ( int n ) { return n * ( ( 3 * n ) + 7 ) ; } public static void Main ( ) { int n = 5 ; Console . Write ( find_distance ( n ) ) ; } }