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.
#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;
}
Comments
Leave a comment