Answer Posted / hr
Solution:
/* C++ Program to Calculate Multiplication of two Numbers */
#include <iostream>
using namespace std;
int main()
{
double first, second, product;
cout << "Enter 1st number :: ";
cin >> first;
cout << "
Enter 2nd number :: ";
cin >> second;
product = first * second;
cout << "
Product of Two Numbers [ "<<first<<" * "<<second<<" ] = " << product<<"
";
return 0;
}
Output:
/* C++ Program to Calculate Multiplication of two Numbers */
Enter 1st number :: 5
Enter 2nd number :: 8
Product of Two Numbers [ 5 * 8 ] = 40
Process returned 0
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why iomanip is used in c++?
What is operator overloading in c++ example?
What is auto used for in c++?
What is the difference between global variables and local variable
Is c++ the most powerful language?
What is the difference between a baller and a reference in C++?
Explain the scope of resolution operator.
What is the full form of india?
What are the advantages of prototyping?
What do you mean by friend class & friend function in c++?
Is dev c++ a good compiler?
Should I learn c or c++ first?
What is the best c++ compiler for windows 10?
What is the use of lambda in c++?
What are destructors?