Thursday, 24 January 2013

program 3-2(77) Demonstrate of compound assignment

// this program demonstrate the use of compound assignments.
#include <iostream>
#include <limits>


using namespace std;

int main()

{
    cout << "this program demonstrate the use of compound assignments.\n enter your two numbers\n";
   int x;
   int y;

   cin >> x;
   cin >> y;

  cout << "x = " << x;
  cout << "  : y = " << y << "\t |" << "x *= y \t | " << " = "<< (x*=y);





    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