pls Make me understand with this question.

i am starting to study c++. just know only basic c++.
this is the question i need to understand how to do..
for time being,, my lecturerr didnt teach me about how to use loops.
iam still study with online tutorial.. :(

By using the looping control structure.
by using a different type of loop
1. for
2. while and
3. do…while)

Ask the user for a number.
Sum up the odd numbers that are less than or equal to the user entered number.
Print out the sum.

is this the right answer for the question by using the loop " for "?
( edited - already try and the answer is right - please correct me if iam wrong )
if yes ..i will try to understand loop "while " and loop " do ... while ".

tq so much,, but still need time to understand by reading reading and reading...