Our analysis of your code: COMPILER ERRORS
Some suggestions:
Unexpected identifiers: A, R, Suppose
Just write an expression -- not a statement!
There is no need for an assignment operator here.
Suppose numberOfPrizes = A*numberOfParticipants+R.
R = (numberOfPrizes % numberOfParticipants);
% is the modulo operation. Similarly for WidthOfWhatever.
Use the modulo operation and test if it is 0.
If J divides K, then ((J%K)==0).