- #1
adjacent
Gold Member
- 1,552
- 63
I have downloaded Mathematica to see if it is really that good. Many people use it.
I want to calculate the multiples of 5 from 0 to 100.
This seems pretty simple but I can't figure out a way to do it.
I can't use the Modulo % in mathematica.
I know that I should use Table. Is there any other function?
I have searched google too, but could not find a solution. If project euler was online, it would have been so helpful!
Please bear with me, I have never touched Mathematica until now.
I tried this code , but it does not work;
I want to calculate the multiples of 5 from 0 to 100.
This seems pretty simple but I can't figure out a way to do it.
I can't use the Modulo % in mathematica.
I know that I should use Table. Is there any other function?
I have searched google too, but could not find a solution. If project euler was online, it would have been so helpful!
Please bear with me, I have never touched Mathematica until now.
I tried this code , but it does not work;
Code:
For[i = 0, i <= 100, i++,
If[Mod[i, 5] = 0, Print[i], Print["Not found"]
]
Last edited: