4.WRITE AN ALGORITHM TO CALCULATE AND DISPLAY OF THE FOLLOWING SERIES : 1x2/3+3x4/5+5x6/7.... UPTO N
START
STEP 1: Declare the variable n ,i as integer as c as double
STEP 2: Initialize n=c=0 and i=1,k=1
STEP 3: Input the value of n
STEP 4: If k<=n then c=c+(i x ((i+1)/(i+2))) ,goto step 5 else goto 6
STEP 5 : Increment the value of i by 2 and k by 1 and goto step 4
STEP 6 : Display the value of c
END