Monday, December 10, 2007

How to work with mathematic operator

How to work with mathematic operator

To work with mathematic operator

#include

main ()

{ int a , b , c ;

cout << "please enter 1st number\n";

cin >> a;

cout<< "please enter 2nd number\n";

cin >> b;

c= a+b;

cout <<"Total is"<< " " <

return 0;

}

Result :


No comments: