stdin in fread function

how can i use stdin in fread function two store a integer into a variable from keyboard as a streem ??

Go through with this link:

Also Check this solution link: CodeChef: Practical coding for everyone

This coder has used stdin as parameter in fread() to take input…!!