Your calculation for the average is incorrect. You want to sum them, then divide by 3, not divide the third by 3 then add the first two. Check your order of operations.
take a closer look at that. Remember that / has a higher priority than +, so the above is the same as average = n1 + n2 + (n3 / 3); which isn't what you want.
cout<< average / 3;
and its better to compare your variables with a "for" & "if"
if you want to learn try to write and debug you yourself.
try to solve your problems by yourself.