Write a C++ Program For Multiply two Numbers
personRam Pothuraju
October 11, 2016
#include <iostream>
using namespace std;
int main( )
{
float n1, n2, product;
cout << "Enter two numbers: ";
cin >> n1 >> n2;
product = n1*n2;
cout << "Product = " << product;
return 0;
}
Output
Enter two numbers: 2.4
1.6
Product = 3.84
Enter two numbers: 11
13
Product = 143
Share to other apps