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 is struct c++?
What is the full form nasa?
What are friend classes? What are advantages of using friend classes?
How do you remove an element from a set in c++?
Should you pass exceptions by value or by reference?
What is the difference between an array and a list?
Which format specifier is used for printing a pointer value?
What is a .h file c++?
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
Can we use pointers in c++?
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
What is the use of setfill in c++?
what is Member Functions in Classes?
Why do we use structure in c++?
What is switch case in c++ syntax?