spinach-guy
Broken In
We have just started C++ in college
but on compiling and running it{no errors here}nothing happens when i enter two nos. and press enter.Why is it so??can someone guide me??
Code:
#include <iostream>
using namespace std;
main()
{ int a,b,c;
cout<<"Enter two nos.:";
cin>> a >> b;
c=a+b;
cin.get();
cout<<"Sum is"<<c<<"";
cin.get();
}
but on compiling and running it{no errors here}nothing happens when i enter two nos. and press enter.Why is it so??can someone guide me??