what does == 0 means
and also what does % denotes
First Doubt of Flowchart
hi @samyakjain1050_65748654e19948da
== 0
this basically checks if the value of variable on the left hand side is equal to 0 or not… if its zero then it returns true, else false…
%
this is a modulus operator
suppose u want to check if a number is even or odd… so we know that if number is even then on dividing by 2 remainder will be 0, else if its odd then remainder will be 1…
if(num%2 == 0){
cout<<"Even Number";
}
else{
cout<<"Odd Number";
}
Hope it clears ur doubt…
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.