Computer Science, asked by kamaliskamali65, 4 days ago

write an algorithm to find number 3 and divisible by 2 and not by 3 and 5

Answers

Answered by Schoolbh
0

Following are the algorithm to check whether the given number is divisible by 2 or not​

Explanation:

Step 1: Start the algorithm.

Step 2: Read the number by the user in variable "x".

Step 3:Test the condition if n mod(%) 2 equals 0 then move to Step 4 .otherwise Move to Step 5.

Step 4: Display " Number is divisible by 2 ".

Step 5: Display " Number is not divisible by 2 ".

Step 6: End the algorithm.

In this, we used % to check the particular condition.

Similar questions