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

Example:

Any number that ends with 7 or is divisible by 7 is called a buzz number.

For example, 127 ends with 7, so it is a Buzz number. Also, 343 is buzz because it is divisible by 7.

Here is the Java program that check whether the input number is buzz or not.

Output:

Enter a number
35
Buzz Number

Leave a Reply

ten + 5 =