mọi người giúp mình viết chương trình này với…
Đây là 1 đoạn viết dở chưa hoàn thiện…
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int a, b, c, d, e;
cout << "Enter the 1st number: " << endl;
cin >> a;
cout << "Enter the 2nd number: " << endl;
cin >> b;
cout << "Enter the 3rd number: " << endl;
cin >> c;
cout << "Enter the 4th number: " << endl;
cin >> d;
cout << "Enter the 5th number: " << endl;
cin >> e;
int selection;
do
{
cout << "Enter your selection (0/1/2 or 3)" << endl;
cin >> selection;
if(selection == 0)
{
//...cout....
}
else if(selection == 1)
{
//...
}
else if(selection == 2)
{
//..
}
}
while(/*.....*/)
return 0;
}