Computer Science, asked by seemabadhan2016, 7 months ago

Write an anglorithm to find whether this given number is odd or even?​

Answers

Answered by 713shreyapalkar
3

Answer:

Finding that a given number is even or odd, is a classic C program. We shall learn the use of conditional statement if-else 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

We can draw a flow diagram for this program as given below −

FlowDiagram Even Odd

Explanation:

you follow me then I will be following you and make me brainlist for the answer please

Answered by deepak35679
1

Answer:

Euclid division algorithm.

Explanation:

For the given positive integers a and b there exist unique integers q and r so that a = bq + r ; where 0 <_ b < r.

Similar questions