Computer Science, asked by sumanchandla87, 5 months ago

write a program ro check entered number is BUZZ number without using if else?

Answers

Answered by YashodharPalav5109
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 kavitasingh143
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