Write a Java program to input an integer number and check whether it
is buzz number or not.
Answers
Answered by
0
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
India Languages,
3 months ago
English,
3 months ago
Science,
3 months ago
English,
7 months ago
English,
7 months ago
English,
11 months ago
Biology,
11 months ago
Social Sciences,
11 months ago