To get a computer to repeat its work, you need a loop statement. Looping statements have many uses, such as counting the number of words in a document or the number of accounts that have past due balances.