I have the following console program on qtcreator 4.7.

Qt Code:
  1. #include <iostream>
  2. #include <cstdlib>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int a;
  8. int b;
  9. int result = a * b;
  10.  
  11. cout<<"Enter a";
  12. cin>>a;
  13.  
  14. cout<<"Enter b";
  15. cin>>b;
  16.  
  17. cout<<"You entered"<<a<<"and you entered"<<b<<"Their product is"<<result<<endl;
  18. cout << "Press any key to exit..." << endl;
  19. system ("pause");
  20. return 0;
  21. }
To copy to clipboard, switch view to plain text mode 

When i input 5 and 9,i get You entered5and you entered9Their product is-2009147472

why am i not getting 45?.