You are on page 1of 2

FLOWCHART:

START

Enter a, b and n

h= (b-a)/n

Sum = 0

Do i = n - 1

Is i%2 =
0?

No Sum = sum + 2*f(x)

Yes
Sum = sum + 4*f(x) Next i

Sum = sum + f(a)+ f(b)

Ans = sum * (h/3)

END

You might also like