Apparently multiplication was addition? I fixed it anyway.

main
DavidDGTNT 2021-11-11 20:34:13 -06:00
parent 5f59b3cb96
commit a506be3fcb
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ int main() {
cout << "Factor 2:" << endl;
float num2;
cin >> num2;
float result = num1 + num2;
float result = num1 * num2;
cout << "Product: " << result << endl;
} else if (op == "4") {
cout << "/" << endl;