Create the scanf check code.

When I at school, I was always confused for this.scanf....