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



Write a C++ Program to Multiply two Numbers..

Answer / 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

More C++ General Interview Questions

How would you find out if a linked-list is a cycle or not?

0 Answers  


Explain how an exception handler is defined and invoked in a Program.

0 Answers  


What is a memory leak c++?

0 Answers  


Do vectors start at 0 c++?

0 Answers  


Can a function take variable length arguments, if yes, how?

0 Answers  


Should the this pointer can be used in the constructor?

0 Answers  


How would you use the functions memcpy(), memset(), memmove()?

0 Answers  


What is lazy initialization in c++?

0 Answers  


Why can’t you call invariants() as the first line of your constructor?

0 Answers  


What are the stages in the development cycle?

0 Answers  


Describe the syntax of single inheritance in C++?

0 Answers   Fidelity,


Why should we use null or zero in a program?

0 Answers  


Categories