Looks ok.
Indent your code properly.
You can merge the two conditionals with a logical 'and' operator (&&).
Your variable 'm' is unused so far, simply replace 'i' with 'm'.
Type: Posts; User: root4
Looks ok.
Indent your code properly.
You can merge the two conditionals with a logical 'and' operator (&&).
Your variable 'm' is unused so far, simply replace 'i' with 'm'.
1. Your assignment gives you explicit names for the objects so use them in your code, that gives a readability bonus (e.g. what you named "a" is "y").
2. Indent correctly your code.
You have all...
Indeed. You can get some help, here, with programming issues, but nobody is going to solve any assignment.
Work on your problem first, show us some code and possible problems you face, then we'll...
Are you joking? please read the forum FAQ.