Computer Science, asked by 6766, 5 months ago

Write a Java program to input an integer number and check whether it
is buzz number or not.

Answers

Answered by TheUntrustworthy
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