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 an operator in c++?
What is static in c++?
What is a Default constructor?
What is the use of structure in c++?
Define Virtual function in C++.
What is array give example?
How many ways can a variable be initialized into in C++?
What is an undefined behavior and sequence points
How will you call C functions from C ++ and vice-versa?
Which operator cannot overload?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
Tell me can a pure virtual function have an implementation?
What is unary operator? List out the different operators involved in the unary operator.
What is const in c++?
What are the basic data types used in c++?