write a program ro check entered number is BUZZ number without using if else?
Answers
Answered by
1
if (enteredNumber % 10 == 7 || enteredNumber % 7 == 0) {
System. out. println("Entered number " + enteredNumber + " is a Buzz number.");
}else {
System. out. println("Entered number " + enteredNumber + " is not a Buzz number.");
} }
}
Answered by
3
HYY DEAR
THIS IS YOUR ANSWER
if
(enteredNumber % 10 == 7 || enteredNumber % 7 == 0) {
System. out. println("Entered number " + enteredNumber + " is a Buzz number.");
}else {
System. out. println("Entered number " + enteredNumber + " is not a Buzz number.");
THANKS MY ANSWERE
MARK ME BRAINLIST
Similar questions