Write a program to print numbers from 1 to 20 except multiple of 2 & 3
Answers
Answered by
0
Answer:
It will change that variable by 20 times, and when the number leaves a remainder greater than 0 when it checks the test of 2 and 3 then only it will add
not x mod 3 = 0 or x mod 2 = 0
same as saying not x mod 3 = 0 and not x mod 2 = 0
Explanation:
Similar questions