Common mistake that everybody makes. :)
Line 21 : use "&" in scanf
Ancient Dragon commented: Good observation -- I missed that :) +17
freedomflyer commented: Very, very clear and well thought out explanation. Even bolded terms and such to make it more clear. +0