The statements in the loop heading have fixed number of operations, hence they have constant running time O(1) when executed only once. The statement in the loop body has fixed number of operations, hence it has a constant running time when executed only once. Find how many times each statement is executed.
List of Massachusetts locations by per capita income topic Massachusetts is the third richest state in the United States of America , with a per capita income of $25,952 (2000) and a personal per capita income of $39,815 (as of 2003).
3,693 residents are foreign born (4.5% Europe, 3.1% Asia, 1.3% Latin America). According to our research of Massachusetts and other state lists there was 1 registered sex offender living in Needham, Massachusetts as of August 12, 2016. The ratio of number of residents in Needham to the number of sex offenders is 29,037 to 1. The number of registered sex offenders compared to the number of residents in this city is a lot smaller than the state average. Nearest city with pop. 50,000+: Newton, MA (3.8 miles , pop. 83,829).