Consider the following algorithm and answer the following questions:
- Step 1: Start
- Step 2 : N = 2, S = 0
- Step 3: Repeat Step 4, Step 5 while N <= 10
- Step 4: S = S + N
- Step 5: N = N + 2
- Step 6: Print S
- Step 7: Stop
1. Predict the output of the above algorithm.
2. Draw a flowchart for the above algorithm