Question: By using visual studio (Using &&, ||, ^operators) Write a program that prompts the user to enter an integer and determines whether it is divisible
(Using &&, ||, ^operators) Write a program that prompts the user to enter an integer and determines whether it is divisible by 5 and 6, whether it is divisible by 5 or 6, and whether it divisible by 5 or 6, but not both. If user input == 0, prompt the user and stop the program. Allow the user to choose which operation she will perform. ********************************* * Main Menu: * * Enter # to run program * * 1) Is Input divisible by 5 and 6 * * 2) Is Input divisible by 5 or 6 * * 3) Is input divisible by 5 or 6, but not both * ********************************* 1) Enter # to run program: 10 // Users enters 10 Is 10 divisible by 5 and 6? No Attach a snipping photo of source code and output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
