Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a C++ Program to Multiply two Numbers

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


Please Help Members By Posting Answers For Below Questions

what does the following statement mean? int (*a)[4]

1035


Why do we use pointers in c++?

985


Explain 'this' pointer and what would happen if a pointer is deleted twice?

1028


What does return 0 do in c++?

989


Explain what are single and multiple inheritances in c++?

987


Explain virtual destructor?

1128


Declare a class vehicle and make it an abstract data type.

930


Is c++ a difficult language?

1056


What is the cout in c++?

1016


What is c++ w3school?

1064


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

1109


Can we define function inside main in c++?

963


Why do we use templates?

1000


Can constructor be private in c++?

988


What is #include iomanip?

961