Computer Science, asked by shloksinha2, 1 year ago

Import java.util.Scanner;
class New8
{
public static void main(String args[])
{
Scanner s=new Scanner(System.in);
System.out.println("Enter a number");
double num=s.nextDouble();
if(num%7.0==0.0 || (num*10.0)%10.0==7.0)
{
System.out.println(num+" "+"is a buzz number");
}
else
{
System.out.println(num+" "+"is not a buzz number");
}
}
} (Is this correct or any errors?)

Answers

Answered by guptatushar159753
0

Answer:

don't know about this question

Answered by SpaceWalker17
5

Answer:

Yeah it's correct.....but I have always used scanner sc .....I hope you can understand friend....

THANK YOU

Similar questions