Microprocessors - Engineering

Q1:

A computer program is used to read M and print the sum 2 + 4 + 6 + 8 +.........+ 2M. If M = 9 , the print out will show the number

A 9

B 18

C 90

D 100

ANS:C - 90

SUM = 2 + 4 + 6 + 8 + 10 + 12 + 14 + 16 + 18 = 90.