Write a program that first asks a maximum value and validate it. Then in a while loop, it calculates and
prints sum of all even integers to the power of 6, from 2 to max (or max-1 if the entered max is odd).
Use power function to calculate the powers.
sum = 26 + 46 + 66 + 86 + …+ max6
.
Input validation: Only accept integers in the range [1, 100]
I am complete confusion over how to use the counter for this problem. Any Help is really appreciated. This is my first class in c++. THANK YOU!