Sum of fourth power of first n even natural numbers | CPP Program to find the sum of fourth powers of first n even natural numbers ; calculate the sum of fourth power of first n even natural numbers ; made even number ; Driven Program
#include <bits/stdc++.h> NEW_LINE using namespace std ; long long int evenPowerSum ( int n ) { long long int sum = 0 ; for ( int i = 1 ; i <= n ; i ++ ) { int j = 2 * i ; sum = sum + ( j * j * j * j ) ; } return sum ; } int main ( ) { int n = 5 ; cout << evenPowerSum ( n ) << endl ; return 0 ; }