Write a program to find the sum of the series:
s=a-a/2+a/3-a/4+ ..............-a/20
Answers
Answered by
3
Answer:
STEP 1: START
STEP 2: SET lines =10
STEP 3: SET i=1
STEP 4: REPEAT STEP 5 to 9 UNTIL i is less than or equals to lines
STEP 5: SET j=1
STEP 6: REPEAT STEP 7 UNTIL j is less than or equals to i
STEP 7: PRINT i*j and SET j = j + 1
STEP 8: PRINT new line
STEP 9: SET i = i + 1
Similar questions