blob: 7c02895de69b3dbb04636c911f6b1912cf396c08 (
plain) (
blame)
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
|
#include <iostream>
using namespace std;
int Logic()
{
double firstNumber, secondNumber, productOfTwoNumbers;
cout << "Enter two numbers: ";
// Temporary variable storage
cin >> firstNumber >> secondNumber;
// Multiplies, then stores temparary variable
productOfTwoNumbers = firstNumber * secondNumber;
cout << "Product: " << productOfTwoNumbers << endl;
return 0;
};
int main()
{
Logic();
system("pause");
return 0;
}
|