Some Cool programs using while and for loops