Hello friends, in this post today, we will learn that how we can check that whether number is odd or even in C programming language.
Before starting the program, we need to know what is Odd and Even numbers.
Let's start to know that what is odd and even numbers.
For example: 3, 5, 7, 9...
Odd numbers are not divisible by two but even numbers are divisible.
For example: 2, 4, 6, 8...
Friends, we have learned that what is odd and even numbers from the definition given above, and now we will know how we can check whether number is odd and even number by a program using if statement.
Let's know how we can check whether number is odd or even by C program.
Before starting the program, we need to know what is Odd and Even numbers.
Let's start to know that what is odd and even numbers.
Odd Numbers:-
Odd numbers are a type of numbers, even numbers are called the numbers that are not completely divisible by two.For example: 3, 5, 7, 9...
Even Numbers:-
Even numbers are a type of numbers like odd numbers.Odd numbers are not divisible by two but even numbers are divisible.
For example: 2, 4, 6, 8...
Friends, we have learned that what is odd and even numbers from the definition given above, and now we will know how we can check whether number is odd and even number by a program using if statement.
Let's know how we can check whether number is odd or even by C program.
1 Comments
Nice
ReplyDelete