Help with counter and power

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!
Loop has been explained to you, yes?

Write a loop, where the loop counter progresses from 2 to max in steps of two. Then show your code to us. (Please use code tags.)
Luciab5, Were you able to figure something out for this?
Topic archived. No new replies allowed.