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
Difference between class and structure.
What are the differences between malloc() and calloc()?
What does override mean in c++?
What is different in C++, compare with unix?
How many characters are recognized by ANSI C++?
Are c and c++ similar?
Specify different types of decision control statements?
What are the classes in c++?
If all is successful, what should main return a) 0 b) 1 c) void
what are the iterator and generic algorithms.
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
Mention the ways in which parameterized can be invoked.
Are iterators pointers?
What is object file? How can you access object file?
What is stream and its types in c++?