I want to break the loop if the user does not enter any value. How do I do that.
#include<iostream>
using namespace std;
int main()
{
int a=1;
while(a!=NULL) //how do i phrase this. When the user does not enter any input
//I want the loop to exit
cin>>a;
return 0;
}