Computer Science, asked by Aswinipacha, 4 months ago

write algorithm to check whether a non zero number is odd or even​

Answers

Answered by Anonymous
0

Find Even Odd Program In C

Algorithm. Algorithm of this program is very easy − START Step 1 → Take integer variable A Step 2 → Assign value to the variable Step 3 → Perform A modulo 2 and check result if output is 0 Step 4 → If true print A is even Step 5 → If false print A is odd STOP.

Flow Diagram. ...

Pseudocode. ...

Implementation. ...

Output.

Answered by Anonymous
1

Answer:

hello,

Explanation:

step1 : start

step2 : input number

step3 : if number%2==0   (% in python is used to find remainder)

            output even

             else

            output odd

step4 : stop

___________________

hope it helps you

please mark brainliest

@ItzSnowySecret07


Aswinipacha: when 2 comes?
Anonymous: any number when divided by 2 if gives the remainder as 0 then it is considered to be an even number
Aswinipacha: ok
Aswinipacha: thank u
Anonymous: thank you :)
Anonymous: for marking it as brainliest
Aswinipacha: :)
Similar questions