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: http://www.codechef.com/viewsolution/814448

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