Flow chart find the sum of even no. 1 to n

sum of even no. 1 to n
if i choose i=2 ,sum=2 nd sum=sum+i nd i updation i+2
it is right

hello @suraj1js18cs167 yes it is right .

mi dout is assign in sum value ,sum=0 or sum=2

if you are startung from i=2 then your first even value will be 2 which you are going to encounter so there is no need to pre add this in your variable .
you can do this in your variable while in loop.
start with sum=0.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.