mirror of https://github.com/daviddgtnt/calc
Apparently multiplication was addition? I fixed it anyway.
parent
5f59b3cb96
commit
a506be3fcb
2
main.cpp
2
main.cpp
|
@ -49,7 +49,7 @@ int main() {
|
||||||
cout << "Factor 2:" << endl;
|
cout << "Factor 2:" << endl;
|
||||||
float num2;
|
float num2;
|
||||||
cin >> num2;
|
cin >> num2;
|
||||||
float result = num1 + num2;
|
float result = num1 * num2;
|
||||||
cout << "Product: " << result << endl;
|
cout << "Product: " << result << endl;
|
||||||
} else if (op == "4") {
|
} else if (op == "4") {
|
||||||
cout << "/" << endl;
|
cout << "/" << endl;
|
||||||
|
|
Loading…
Reference in New Issue