No problem for what it concerns the comments, but the code doesn't run, because there are a lot of weird characters (maybe due to copying & pasting from somewhere?). Let's wait until after your exam, when you'll have time to format your code properly.
PS if this is a homework question, please state it clearly and be sure to follow our homework policy: