1) if() is not a loop
2) the problem is occuring long before he gets there
3) it is skipping the second input because of a newline character left behind by the first.