Um, the problem is exactly what the error message says. You check the value of "input" in the while statement, but the scanf that assigns things to it happens after the first check.

Try this as...