-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMSv2.2.cpp
More file actions
37 lines (37 loc) · 1.14 KB
/
MSv2.2.cpp
File metadata and controls
37 lines (37 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "MSv2.2.h"
using namespace std;
int main() {
int choice;
string choices = "0: Exit\n1: Multiples solver\n2: Triangle Solver\n3: Calculator\n4: Polynomial Factorer\n5: Fibonacci Checker\n";
SetConsoleTitle(TEXT("MathSuite v2.2"));
cout << "Welcome to MathSuite Version 2.2!\tNew and Improved!\nMade by Lucas Thompson - lthomp079 on Github" << endl;
cout << "What would you like to do?" << endl;
cout << choices;
cin >> choice;
while (choice != 0) {
switch (choice) {
case 1:
Multiples();
break;
case 2:
Triangles();
break;
case 3:
Calculator();
break;
case 4:
factor();
break;
case 5:
fib();
break;
default:
cout << "Invalid choice. Please try again." << endl;
break;
}
cout << endl << "What would you like to do next?\n" << choices;
cin >> choice;
}
system("pause");
return 0;
}