what is a buzz number
Answers
Answered by
4
A number is said to be Buzz Number if it ends with 7 OR is divisible by 7..
harsh85839:
thanks
Answered by
5
A number which is divisible by 7 or whose last digit is 7 is called a Buzz number.
Java program how to know whether a number is a Buzz number or not.
import java. util. *
class Buzz
{
public static void main (string args[])
{
Scanner sc= new Scanner (System. in);
int x;
System.out.println ("Enter a number");
x=sc. nextInt ();
if(x%==0||x/10==7)
System.out.println (x+"is Buzz number");
else
System.out.println (x+"is not Buzz");
}
}
Similar questions
English,
7 months ago
Computer Science,
7 months ago
Math,
7 months ago
Social Sciences,
1 year ago
Biology,
1 year ago
English,
1 year ago