How can I get this output by running a for loop
the logic is that after the multiples of 2, "This" will b printed, after the multiples of 3, "Is" will b printed and after the multiples of 5, "Java" will b printed.
pls help with code
1
2 This
3 Is
4 This
5 Java
6 This Is
7
8 This
9 Is
10 This Java
11
12 This Is
13
14 This
15 Is Java
16 This
17
18 This Is
19
20 This Java