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 |
Hi i need to Acess a variable "int Intval" in the below mentioned code .How to Access it guys i am waiting for your reply
how many rounds and wt type of questios ask in the written test for first round 2. tech. round 3. and futher rounds
What is RTRT tool?can it be used for automation?can it work on packet PC?
Why would you use pointers in c++?
Write a single instruction that will find the remainder of integral division when x is divided by y. Have the answer stored in z.
What are pointers used for c++?
How are Structure passing and returning implemented by the compiler?
Is map sorted c++?
What are the different types of polymorphism?
Write about c++ storage classes?
When are exception objects created?
Define a constructor - what it is and how it might be called (2 methods)?