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
what does the following statement mean? int (*a)[4]
Why do we use pointers in c++?
Explain 'this' pointer and what would happen if a pointer is deleted twice?
What does return 0 do in c++?
Explain what are single and multiple inheritances in c++?
Explain virtual destructor?
Declare a class vehicle and make it an abstract data type.
Is c++ a difficult language?
What is the cout in c++?
What is c++ w3school?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
Can we define function inside main in c++?
Why do we use templates?
Can constructor be private in c++?
What is #include iomanip?