Simple Solutions for Number-Based Math Challenges
๐งฉ LEVEL 1: BASIC UNDERSTANDING OF NUMBERS
1. Check Positive / Negative / Zero
Condition
n > 0 โ Positive
n < 0 โ Negative
n == 0 โ Zero
if(n > 0)
else if(n < 0)
else
2. Check Even or Odd
Condition
Divisible by 2 โ Even
Not Divisible by 2 โ ...
number-based-problem.hashnode.dev7 min read
Bhavadharani K
Blog Driven Learning...
Very insightful