Learned about while-loop in c.