write a Java Program to check if the product of two numbers it is a Buzz number or not
Answers
Answered by
1
public class KboatBuzzCheck
{
public static void buzzNumCheck(int a, int b) {
int p = a * b;
System.out.println("Product = " + p);
if (p % 10 == 7 || p % 7 == 0)
System.out.println("Product is a Buzz Number");
else
System.out.println("Product is not a Buzz Number");
}
}
Attachments:
Answered by
0
here is you answer
javajavajavajava
Attachments:
Similar questions