subject

The following section of psudo code inputs a number n, multiplies together 1 x 2 x 3 x x n, calculates input number/sum and output result of the calculations. locate 3 errors and suggest a corrected piece of code.

INPUT n
FOR mult = 1 TO n
sum = 0
sum = sum * mult
result = n / sum
NEXT
PRINT result

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 23:30
The keyboard usually has six rows of keys. which of the following is not one of the key group categories? letter keys number keys control keys graphic keys
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Suppose a cpu with a write-through, write-allocate cache achieves a cpi of 2. what are the read and write bandwidths (measured by bytes per cycle) between ram and the cache? (assume each miss generates a request for one block.)
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Into what form does the barcode reader convert individual bar patterns?
Answers: 1
question
Computers and Technology, 24.06.2019 23:30
Which example can be considered master data in an organization? a. holiday list b. dress code c. employee information d. recreational activities
Answers: 1
You know the right answer?
The following section of psudo code inputs a number n, multiplies together 1 x 2 x 3 x x n, calcula...
Questions
question
Mathematics, 06.01.2021 21:00
question
History, 06.01.2021 21:00
question
Mathematics, 06.01.2021 21:00
Questions on the website: 13722361