You need to get a Book in C / C++ for learning the looping.