- 1
How to Output Multiple of 3? C#
I want to make so that it prints out numbers and replace multiple of 3 whit: *. I am working whit C# and i am just a beginer of this new world.
4 Respuestas
+ 6
use modulo operator (%) to compute rest of division by 3: if it equals zero, then it is divisible by 3...
+ 4
For better help post your code
+ 2
Maybe you can use loop.
+ 2
Muhd Khairul Amirin It is to be used. Or can be done through recursion also