Quote:please help me find a solution for this code illustrating it
No, this is your homework, ypu have to furnish some effort.
You can't come up with nothing, getting user input is C 101.
As programmer, doing search by yourself is part of the job.
Quote:Function which uses ascii values
Search ASCII and find what values are uppercase letters and what are lowercase letters.