Average of first n even natural numbers | CPP Program to find the average of sum of first n even numbers ; Return the average of sum of first n even numbers ; Driver Code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int avg_of_even_num ( int n ) { return n + 1 ; } int main ( ) { int n = 8 ; cout << avg_of_even_num ( n ) << endl ; return 0 ; }