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
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
Math,
13 days ago
Math,
26 days ago
Environmental Sciences,
26 days ago
Math,
8 months ago
Biology,
8 months ago