Skip to content

Commit

Permalink
Create Multiplication.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishjakhar9099 authored Oct 23, 2022
1 parent fc2b113 commit 7179f6c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions C++/Multiplication.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <iostream>
using namespace std;

int main() {
double num1, num2, product;
cout << "Enter two numbers: ";

// stores two floating point numbers in num1 and num2 respectively
cin >> num1 >> num2;

// performs multiplication and stores the result in product variable
product = num1 * num2;

cout << "Product = " << product;

return 0;
}

0 comments on commit 7179f6c

Please sign in to comment.