Using 11 operators Write a program that prompts the user to
Solution
#include <iostream>
 #include<math.h>
 using namespace std;
 int main() {
    // your code goes here
    int number;
    int choice;
   
    do
 {
   cout << \"Main Menu\ Enter # to run program or Quit.\" << endl;
    cout << \"1) Is Input divisible by 5 and 6\" << endl;
    cout << \"2) Is Input divisible by 5 or 6\" << endl;
    cout << \"3) Quit.\" << endl;
    cin >> choice;
   
    switch(choice)
    {
    case 1:
    cout << \"Enter an integer : \" << endl;
    cin >> number;
    if(number%5==0 && number%6==0)
    cout << \"Is Input divisible by 5 and 6?\" << \" Yes.\" << endl;
    else
    cout << \"Is Input divisible by 5 and 6?\" << \" No.\" << endl;
    break;
    case 2:
    cout << \"Enter an integer : \" << endl;
    cin >> number;
    if(number%5==0 || number%6==0)
    cout << \"Is Input divisible by 5 or 6?\" << \" Yes.\" << endl;
    else
    cout << \"Is Input divisible by 5 or 6?\" << \" No.\" << endl;
    break;
    case 3:
    break;
    default:
    cout << \"Invalid choice.\" << endl;
    break;
    }   
   
    }while(choice!=3);
    return 0;
 }
OUTPUT:
Main Menu
 Enter # to run program or Quit.
 1) Is Input divisible by 5 and 6
 2) Is Input divisible by 5 or 6
 3) Quit.
1
 Enter an integer :
10
 Is Input divisible by 5 and 6? No.
 Main Menu
 Enter # to run program or Quit.
 1) Is Input divisible by 5 and 6
 2) Is Input divisible by 5 or 6
 3) Quit.
2
 Enter an integer :
10
Is Input divisible by 5 or 6? Yes.
 Main Menu
 Enter # to run program or Quit.
 1) Is Input divisible by 5 and 6
 2) Is Input divisible by 5 or 6
 3) Quit.
3


