Computer Science, asked by abishekshahi35, 26 days ago

Read the following program and answer the given questions: [2] CLS X=5 FOR K = 1 TO X S=S+K NEXT K PRINT S END i) What will be the output of the above program? ii) Find the result if the line S=S+K is replaced with S=S+K^2.​

Answers

Answered by shreyanshkr636
0

Answer:

Read the following program and answer the given questions: [2] CLS X=5 FOR K = 1 TO X S=S+K NEXT K PRINT S END i) What will be the output of the above program? ii) Find the result if the line S=S+K is replaced with S=S+K^2.

Similar questions