Your program chokes and dies horribly when the user inputs a letter or a floating point value.
The variable 'l' is unused.
Also, ditch the conio.h and its associated functions, they're outdated and non-portable.
Your program chokes and dies horribly when the user inputs a letter or a floating point value.
The variable 'l' is unused.
Also, ditch the conio.h and its associated functions, they're outdated and non-portable.