Write a C++ Program to Multiply two Numbers
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 |
What is an inclusion guard?
Difference between Operator overloading and Functional overloading?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
What is a driver program?
What is the main purpose of c++?
What is virtual base class?
How the keyword struct is different from the keyword class in c++?
What is cloning?
Can a Structure contain a Pointer to itself?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
What new()is different from malloc()?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?