Thursday, 24 January 2013

program 1-3(9) the multiplication program

// this program read two numbers from the keyboard and print thier product.
#include <iostream>
#include<cmath>
#include <limits>
using namespace std;

int main()
{


   int num1;        // variable
   int num2;

   cout << "enter your 1st number ";
   cin >> num1;   // input

   cout << "enter your 2nd number ";
   cin >> num2;   // input


   cout << "The mulitiple of two numbers = " << num1*num2;// product of two numbers.
   cin.ignore(numeric_limits<streamsize>::max(), '\n');
   cin.get();
    return 0;
}

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Enterprise Project Management