write an algorithm to find out if the number is even or odd diagram
Answers
Answered by
2
- 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.
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
Chemistry,
4 months ago
English,
4 months ago
Computer Science,
9 months ago
English,
9 months ago
English,
9 months ago