Answer to Question #261276 in C++ for saad

Question #261276

1.     Create a menu to execute tasks. There shall be n tasks in total, update as they comes up. You should properly prompt wherever necessary.


1
Expert's answer
2021-11-05T01:13:14-0400
#include <iostream>
using namespace std;
int main(){
    int choice;
    do{
        cout<<"Enter task to perform\n";
        cout<<"1. Task 1\n2. Task 2\n3. Task 3\n0. Quit\n";
        cin>>choice;
        if(choice > 0 && choice < 4){
            cout<<"Performing task "<<choice<<endl<<endl;
        }
    }while(choice != 0);
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS