Quote Originally Posted by eranga262154 View Post
So basically we can do it in this way, just using two lines.

C++ Code:
  1. #include <iostream>
  2.  
  3. using namespace std ;
  4.  
  5. int main()
  6. {
  7.    // body of the program
  8.   cin.get() ;
  9.   return 0 ;
  10. }
[/COLOR]

system("PAUSE"); works really well.