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
0
Answer:
don't know about this question
Answered by
5
Answer:
Yeah it's correct.....but I have always used scanner sc .....I hope you can understand friend....
THANK YOU
Similar questions
Math,
6 months ago
Math,
6 months ago
Math,
6 months ago
Environmental Sciences,
1 year ago
Physics,
1 year ago