rendered paste body#include <iostream>
#include <string>
using namespace std;
int main () {
int numbers, number1, number2, number3, number4, number5, number6, number7, number8, number9, number10, result;
string todo;
cout << "How many numbers do you want the calculator to calculate with? (2 to 10)";
cin >> numbers;
cout << "What do you want to do? (+, -, *, /, %)";
cin >> todo;
switch (numbers) {
case 2:
cout << "Type the first number";
cin >> number1;
cout << "Type the second number";
cin >> number2;
break;
case 3:
cout << "Type the first number";
cin >> number1;
cout << "Type the second number";
cin >> number2;
cout << "Type the third number";
cin >> number3;
break;
case 4:
cout << "Type the first number";
cin >> number1;
cout << "Type the second number";
cin >> number2;
cout << "Type the third number";
cin >> number3;
cout << "Type the fourth number";
cin >> number4;
break;
case 5:
cout << "Type the first number";
cin >> number1;
cout << "Type the second number";
cin >> number2;
cout << "Type the third number";
cin >> number3;
cout << "Type the fourth number";
cin >> number4;
cout << "Type the fifth number";
cin >> number5;
break;
case 6:
cout << "Type the first number";
cin >> number1;
cout << "Type the second number";
cin >> number2;
cout << "Type the third number";
cin >> number3;
cout << "Type the fourth number";
cin >> number4;
cout << "Type the fifth number";
cin >> number5;
cout << "Type the sixth number";
cin >> number6;
break;
case 7:
cout << "Type the first number";
cin >> number1;
cout << "Type the second number";
cin >> number2;
cout << "Type the third number";
cin >> number3;
cout << "Type the fourth number";
cin >> number4;
cout << "Type the fifth number";
cin >> number5;
cout << "Type the sixth number";
cin >> number6;
cout << "Type the seventh number";
cin >> number7;
break;
case 8:
cout << "Type the first number";
cin >> number1;
cout << "Type the second number";
cin >> number2;
cout << "Type the third number";
cin >> number3;
cout << "Type the fourth number";
cin >> number4;
cout << "Type the fifth number";
cin >> number5;
cout << "Type the sixth number";
cin >> number6;
cout << "Type the seventh number";
cin >> number7;
cout << "Type the eigth number";
cin >> number8;
break;
case 9:
cout << "Type the first number";
cin >> number1;
cout << "Type the second number";
cin >> number2;
cout << "Type the third number";
cin >> number3;
cout << "Type the fourth number";
cin >> number4;
cout << "Type the fifth number";
cin >> number5;
cout << "Type the sixth number";
cin >> number6;
cout << "Type the seventh number";
cin >> number7;
cout << "Type the eigth number";
cin >> number8;
cout << "Type the nineth number";
cin >> number9;
break;
case 10:
cout << "Type the first number";
cin >> number1;
cout << "Type the second number";
cin >> number2;
cout << "Type the third number";
cin >> number3;
cout << "Type the fourth number";
cin >> number4;
cout << "Type the fifth number";
cin >> number5;
cout << "Type the sixth number";
cin >> number6;
cout << "Type the seventh number";
cin >> number7;
cout << "Type the eigth number";
cin >> number8;
cout << "Type the nineth number";
cin >> number9;
cout << "Type the tenth number";
cin >> number10;
break;
}
system("pause");
return 0;
}