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 the difference between a type-specific template friend class and a general template friend class?
Explain data encapsulation?
If dog is a friend of boy, is boy a friend of dog?
Explain function overloading
What is command line arguments in C++? What are its uses? Where we have to use this?
What is the use of register keyword with the variables?
What is the use of map in c++?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
Why is main an int?
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
Explain selection sorting?
Explain the isa and hasa class relationships.
Explain the static member function.
What is ios in c++?
What is setiosflags c++?