Computer Science, asked by aishanyadwivedi18feb, 7 months ago

Write an if condition to check that the number "x" is a BUZZ number.

Answers

Answered by sarabjot29
0

Answer:

if(x%7==0||x%10==7)

Answered by Brenquoler
1

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