Hey guys, I'm having some troubles making a program my teacher asked me this week. The algorithm is fine to do, but the entries are screwing me up.
Well, I think it is kinda simple to solve it but still, I'm a beginner and don't know much yet.
First of all, the program will read 3 int values, one of then we will call N (The others aren't important for this doubt).
Then it will read N values, all in the same line.
For example:
First entry: x y 10
Second entry: a b c d e f g h j i
First entry: x y 3
Second entry: a b c
First entry: x y 7
Second entry: a b c d e f g
I don't know how to do that. Can't use switch (N) and case 1 <= x <= N, because N is a number between 1 and 20 and the code would be really long, and I don't think it should since my class are all beginner at programming.
Any suggestions? Thanks!