Searching...

Pick Number and Get Result

15:45


#include <iostream>
using namespace std;
int main()
 {
int number;
cout << "Enter a number between 1 and 5: ";
        cin >> number;
    switch (number)
{
case 0:
cout << "Too small, sorry!";
            break;
case 5:
cout << "Good job!";
break;
case 4:
cout << "Nice Pick!";
break;
case 3:
cout << "Excellent!";
break;
case 2:
cout << "Masterful!";
break;
case 1:
cout << "Incredible!";
            break;
      default:
cout << "Too large!";
            break;
   }
    cout <<endl;
     return 0;
}

0 comments:

Post a Comment

Thanks For Your FeedBack....