Well, doing the question for you is something i don't believe i should look at doing, but rather to explain to you about loops and the use of while loops. I mean, this is so you can practice coding. There are MANY different ways you could go about this problem.
To start off: You have a while loop, and the word 'while' implies the function of the loop its self.
while (x > 5)
{
//code here
}
The argument x > 5 is what determines whether or not the while loop runs, or even executes. If x is greater than 5, then the while loop will run until it is NOT greater than 5. In other words, when the value of x becomes 5 or less than 5 it will make the loop not execute. The reason for this is the value of 'truth' behind the argument. The argument x > 5 is true if the while loop executes and runs, but it is not true when it doesn't run.
Your program will simply loop through 300 numbers, in the range of 200-500, and during this time you will attempt to find out whether or not a number is a multiple of two kinds of statements:
5 AND 7
5 OR 7
In programming, the use of ANDs and ORs are important, as denoted by && for AND and || for OR. If you don't understand this, review your source and notes. To clarify: the use of AND makes note that there are two conditions that both must be true in order to the argument to be true. the use of OR means that if there is at least 1 argument (either or) then the argument is true.
To find if a number is a multiple of another number, then you must remember that if you divide the number by that number you'll get a result, won't you? If a number is not a multiple of another number, then it will have a remainder, but if there is no remainder then it is a multiple of that number. The use of remainders also falls on mod.
This should be sufficient enough for you to answer/solve the question yourself.
Good luck,
~Barolb