#include
using namespace std;
int main()
{
char ch;
cout<<"Enter the character without cin.get()"<<endl;
cin>>ch;
while(ch!='.')
{
cout<<ch;
cin>>ch;
}
char ch1;
cout<<"Enter the character with cin.get()"<<endl;
ch1=cin.get();
while(ch!='.')
{
cout<<ch;
ch1=cin.get();
}
}
//sir whenever i try to execute this code the code only takes one input and before taking the second input the program is terminated why???