Using for loops, we can rewrite the same program making it easier for other programmers to understand.