HotelInfantesAgres - Bawat tanong, may sagot. Logo

In Technology and Home Economics / Junior High School | 2025-08-18

create me a flow that will check of the number is divisible by 2 or 3

Asked by precious4824

Answer (1)

Check divisibility by 2If n % 2 = 0 → Output: "Number is divisible by 2."Else, go to next step.Check divisibility by 3If n % 3 = 0 → Output: "Number is divisible by 3."Else → Output: "Number is not divisible by 2 or 3."ExampleIf n = 12 → divisible by 2 and 3.If n = 14 → divisible by 2 only.If n = 9 → divisible by 3 only.If n = 7 → not divisible by 2 or 3.

Answered by BrainlyModIsBusy | 2025-08-26