Can anyone tell me what is wrong?
else is being executed even when if is true
Attachments:
Answers
Answered by
1
Answer:
I think you should use mod operator since
here 3/2= 1 even if it's odd result will not be 0.
Try using mod operator
Similar questions
Hindi,
3 months ago
Computer Science,
3 months ago
English,
3 months ago
Math,
6 months ago
English,
6 months ago
Physics,
11 months ago
English,
11 months ago
Social Sciences,
11 months ago