# Flow chart to check odd and even number

Flow chart to check odd and even number

or

find the even or odd number by developing a flowchart

week 2(a)

Purpose: The given number is known or odd.
Algorithm:
Step 1: Start
Step2: Declare the variable n and read n.
Step 3: Check Status n% 2 == 0
Step 4: If the condition is true, the printed number is even.
Step5: Otherwise print that the given number is odd.
Step 6: End

Flowchart:

Input:

Enter n value: 5

Output:

odd number
—- run all over. Rated 5 symbols .—-

Flow chart to check odd and even number

odd and even number using append

Source Code

```def odd_even(num):
odd=[]
even=[]
for i in num:
if i%2 == 0:
even.append(i)
else:
odd.append(i)
output_num=[odd,even]
return output_num
number=[1,2,3,12,15,6,7,8,9]
print(odd_even(number))

number2=[1,2,3,4,5,6,8,9]
if number2%2==0:
print("even number are :",number2)
else:
print("odd number are :",number2)
```

https://en.wikipedia.org/wiki/Even%E2%80%93odd_rule

https://www.quora.com/What-is-the-algorithm-for-even-or-odd-number-c-programming