write algorithm to check whether a non zero number is odd or even
Answers
Answered by
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
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?
Similar questions