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
Social Sciences,
2 months ago
Math,
2 months ago
English,
5 months ago
Hindi,
5 months ago
Social Sciences,
10 months ago
Chemistry,
10 months ago
Physics,
10 months ago