|Even if there was another way, all three of the methods you have used are absolutely valid.|
Therefore any program that tells you that you are "not doing it right" is, on the face of it, wrong.
However, we don't know exactly how the question is worded so I'm not going to slam Myitlab based on what you've told us.
Is there on-line or human help available for the course/test?
Click Here Before Posting Data or VBA Code ---> How To Post Data or Code.