Help with fairly easy C++ HWK problems

Hi! I need some help on these three problems.

a) Wirite a for-loop to create the sum of the integers from 0 up to and including a given integer in the variable named number.

What I have: for(i=0;i<number;itt){
cout << sum;)


b) Write a do-while loop to validate that a user entered proper values for birth_month if the form is mm/yyyy and asks again if no.

I think for this one I need to use the overloading operator and use like
a = b
b = a
type of thing but I am not sure at all.

c) Write a conditional statement (i.e. ?:) that compares two numbers and prints which is the max

For this one I am totally confused but I know its probablyy so-so easy... any help is greatly appreciated. Please be specific and thanks
Topic archived. No new replies allowed.