|
scanf will accept anything that is typed as input...might not interpret it like you think it's going to though.
Assuming you've included the correct libraries etc, that code should work.
There may be a problem somewhere else in your code.
In an earlier post you said it wasn't accepting numbers, your last post said letters - which isn't it accepting? What exactly is the error message you're getting? Does it compile and give a run-time error, or will it not even compile?
__________________
~ You know, Hobbes, some days even my lucky rocketship underpants don't help. ~
|