Class 10 Exam  >  Class 10 Questions  >  If n is even then by putting n/2 in the formu... Start Learning for Free
If n is even then by putting n/2 in the formula .and when n is odd then putting n+1 / 2 in the formula .?
Most Upvoted Answer
If n is even then by putting n/2 in the formula .and when n is odd the...
¶ Is it a sᵗᵃᵗᵉᵐᵉⁿᵗ Or ϙᵘᵉˢᵗⁱᵒⁿ Or ɴᵒⁿˢᵉⁿˢᵉ ˢᵗᵘᶠᶠ..... Sorry not able to interpret
Community Answer
If n is even then by putting n/2 in the formula .and when n is odd the...
Explanation of the Formula for Even and Odd Numbers:
To understand the formula for even and odd numbers, let's break it down based on the parity of the number n.

Even Numbers:
- When n is even, we can simply divide it by 2. This is because even numbers are divisible by 2 without any remainder.
- So, the formula for even numbers becomes: n/2

Odd Numbers:
- When n is odd, we need to add 1 to it before dividing by 2 to get the correct result.
- This is because odd numbers are not perfectly divisible by 2, so adding 1 ensures that we get the next even number before dividing.
- So, the formula for odd numbers becomes: (n+1)/2

Example:
Let's take an example to illustrate this:
- For an even number, let n = 6. Applying the formula n/2, we get 6/2 = 3.
- For an odd number, let n = 7. Applying the formula (n+1)/2, we get (7+1)/2 = 8/2 = 4.

Conclusion:
- By following the above rules and formulas, we can easily handle even and odd numbers in calculations or programming tasks.
- Understanding the parity of numbers and applying the appropriate formula ensures accurate results and simplifies the process of working with different types of numbers.
Attention Class 10 Students!
To make sure you are not studying endlessly, EduRev has designed Class 10 study material, with Structured Courses, Videos, & Test Series. Plus get personalized analysis, doubt solving and improvement plans to achieve a great score in Class 10.
Explore Courses for Class 10 exam

Top Courses for Class 10

If n is even then by putting n/2 in the formula .and when n is odd then putting n+1 / 2 in the formula .?
Question Description
If n is even then by putting n/2 in the formula .and when n is odd then putting n+1 / 2 in the formula .? for Class 10 2024 is part of Class 10 preparation. The Question and answers have been prepared according to the Class 10 exam syllabus. Information about If n is even then by putting n/2 in the formula .and when n is odd then putting n+1 / 2 in the formula .? covers all topics & solutions for Class 10 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for If n is even then by putting n/2 in the formula .and when n is odd then putting n+1 / 2 in the formula .?.
Solutions for If n is even then by putting n/2 in the formula .and when n is odd then putting n+1 / 2 in the formula .? in English & in Hindi are available as part of our courses for Class 10. Download more important topics, notes, lectures and mock test series for Class 10 Exam by signing up for free.
Here you can find the meaning of If n is even then by putting n/2 in the formula .and when n is odd then putting n+1 / 2 in the formula .? defined & explained in the simplest way possible. Besides giving the explanation of If n is even then by putting n/2 in the formula .and when n is odd then putting n+1 / 2 in the formula .?, a detailed solution for If n is even then by putting n/2 in the formula .and when n is odd then putting n+1 / 2 in the formula .? has been provided alongside types of If n is even then by putting n/2 in the formula .and when n is odd then putting n+1 / 2 in the formula .? theory, EduRev gives you an ample number of questions to practice If n is even then by putting n/2 in the formula .and when n is odd then putting n+1 / 2 in the formula .? tests, examples and also practice Class 10 tests.
Explore Courses for Class 10 exam

Top Courses for Class 10

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev