Computer Science, asked by addagullasridhaar4, 5 hours ago

Write a algorithm to accept a number and check if it is divisible= by 2​

Answers

Answered by dheerajsingh54
0

Answer:

Step 1- Start

Step 2- Read / input the number.

Step 3- if n%2==0 then goto step 5 .

Step 4- else number is not divisible by 2 then goto step 6.

Step 5- display the output number is divisible by 2.

Step 6- Stop

[here (n%2==0) means when n divided by 2 its remainder is zero ]

Similar questions