Jamie and Leo are classmates who just started learning numbers. They both decided to play a game with what they learnt. Jamie will start saying number 1 and Leo should say 2 and again Jamie says 3.in the same manner both will alternatively spell the consecutive number. but if number 5 or a multiple of five comes, they should say "bus/bus/ bus" instead of the number as per the sample output. write a java program to display the numbers and word they spell.
Answers
Answered by
0
Explanation:
jamie will start saying number 1 and leo should say 2 and again jamie says 3.in the same manner both will alternatively spell the consecutive number. but if number 5 or a multiple of five comes, they should say "bus/bus/ bus" instead of the number as per the sample output.
Similar questions