--- In [email protected], Vishal Rakhecha <[EMAIL PROTECTED]> wrote:
>
> sir i have that logic which u tell but i m take it as
> a integer .so when i am pressing enter key without
> giving any date so it will skip that step & program
> control goes to next statement..
> so could u tell me how to solve it ..should i have
> to take it as a string..
<snip>

Yes. Have the user input a string in a loop and exit the loop only if
the string given by the user indeed resembles a date, otherwise print
a warning / error (whatever you like) and repeat the loop.

Regards,
Nico

Reply via email to