Computer Science, asked by arkasaha988, 4 months ago

In the game FizzBuzz, what should be the output for the number 510?

Answers

Answered by saketsug18ee
1

Answer:

FizzBuzz

Explanation:

Since in FizzBuzz game if a number is divisible by both 5 and 3 then  we print FizzBuzz .

Answered by shikhaprabhakar2203
0

In the game FizzBuzz, the output for the number 510 is FizzBuzz.

Explanation:

FizzBuzz is a program used to check the divisibility of a number with 3 and 5. If the number is divisible by 3 then the output of the program is Fizz, if the number is divisible by 5 the output is Buzz, and if the number is divisible by 3 and 5 both then the output is FizzBuzz.

Here the number given is 510,

When we divide 510 by 3, the remainder is zero which means 510 is divisible by 3.

When we divide 510 by 5, the remainder is zero which means 510 is divisible by 5.

Since, the number 510 is divisible by 3 and 5 both the output of the number will be FizzBuzz.

The FizzBuzz programming is done in all the programming languages.

Related links,

https://brainly.in/question/5668193

#SPJ3

Similar questions