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

Difference between class and structure.

1109


What are the differences between malloc() and calloc()?

1110


What does override mean in c++?

1015


What is different in C++, compare with unix?

1022


How many characters are recognized by ANSI C++?

1361


Are c and c++ similar?

1000


Specify different types of decision control statements?

803


What are the classes in c++?

1056


If all is successful, what should main return a) 0 b) 1 c) void

974


what are the iterator and generic algorithms.

2097


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?

1047


Mention the ways in which parameterized can be invoked.

892


Are iterators pointers?

1107


What is object file? How can you access object file?

1126


What is stream and its types in c++?

992