Skip to content

Commit

Permalink
mul.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Romik-1305 authored Oct 1, 2021
1 parent 0d0ece2 commit bd707fd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions mul.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 bd707fd

Please sign in to comment.