Write a java program to check whether a number is Buzz number or not.

Example:

Buzz Number

A number is called a Buzz number if it ends with 7 or is divisible by 7.

Examples of Buzz Number

127 ends with 7 so it’s a Buzz number. 343 is also a buzz number since it is divisible by 7.

Let’s see the java source code for the Buzz number.

Output

Buzz number in Java

Comment below if you have any suggestions or any doubts.

Leave a Reply