10 friends are sitting in a circle around a table and decide to play a new game. In it, they count up through the numbers from 1 to 30. The first person says "1", the second says "2" and so on... but with a few catches:
Whenever the number is divisible by 5, they switch directions. Example: person 4 will say "4", person 5 will say "5", then person 4 again will say "6", then person 5 again will say "7".
Whenever the number is divisible by 8, they skip the next person.
Your job is write a java program that will output which player says the number 30.
need help mga mster thankyou in advanced .
Whenever the number is divisible by 5, they switch directions. Example: person 4 will say "4", person 5 will say "5", then person 4 again will say "6", then person 5 again will say "7".
Whenever the number is divisible by 8, they skip the next person.
Your job is write a java program that will output which player says the number 30.
need help mga mster thankyou in advanced .


buhay ICT eh gr11.