Regarding flowchart

for what purpose % is used with variables
as i was doing flowchart for finding sum of even numbers from 1 to n

Hey @shlok.sharma3
while looking for even numbers, you might have come through such an expression:
if(i%2 == 0)
% is modulus/remainder operator.
i%2 is same as i modulus 2,
i%2 == 0 means that when i is divided by 2, remainder is 0, i.e. i is completely divisible by 2 which implies that a number is even.

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.