write an algorithm to find number 3 and divisible by 2 and not by 3 and 5
Answers
Answered by
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
Computer Science,
2 days ago
English,
2 days ago
Physics,
2 days ago
Geography,
4 days ago
Music,
8 months ago
Social Sciences,
8 months ago
Math,
8 months ago