Write a C++ Program to Multiply two Numbers
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 |
i want the NIC programmer-B model papaer pattren, iwant the all model papers?
Is it possible to get the source code back from binary file?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
What does obj stand for?
Is it possible to write a c++ template to check for a function's existence?
catch(exception &e) { . . . } Referring to the sample code above, which one of the following lines of code produces a written description of the type of exception that "e" refers to? a) cout << e.type(); b) cout << e.name(); c) cout << typeid(e).name(); d) cout << e.what(); e) cout << e;
Which is the best c++ compiler for beginners?
What is malloc in c++?
How many keywords are used in c++?
There is a array of 99 cells and we have to enter 1-100 elements in it , no two elements would repeat , so the is one no. missing because 99 cells and 1-100 nos. so we had to implement a function to find that missing no.
Explain the different access specifiers for the class member in c++.
What's the hardest coding language?