Computers

Given the following algorithm SUM = 1 FOR I = 1 TO 10 SUM = SUM+I NEXT I The value of SUM at the end of the loop is 1 10 55 56 HINT

Given the following algorithm

SUM = 1

FOR I = 1 TO 10

SUM = SUM+I

NEXT I

The value of SUM at the end of the loop is

1

10

55

56

HINT

This question of the day was provided by the courtesy of Professor Autar Kaw of the University of South Florida from the book FE Practice Exam With Complete Solutions