Print 3 multication under 100 numbers

public class Print3multification {

public static void main(String[] args) {
	int n=100;
	int i=1;int mul=3;
	while(i<=n) {
		
		mul=mul*i;
		i++;
		System.out.println(mul);	
			
	}
      
}

}
output:

3
6
18
72
360
2160
15120
120960
1088640
10886400
119750400
1437004800
1501193216
-458131456
1717962752
1717600256
-865566720
1599668224
328925184
-2011430912
709623808
-1568145408
-1707606016
1967128576
1933574144
-1266679808
159383552
167772160
570425344
-67108864
-2080374784
-2147483648
-2147483648
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2. process

public class Print3multification {

public static void main(String[] args) {
	int n=100;
	int i=1;int mul=3;
	while(i<=n) {
		
		mul=mul*i;
		i++;
			
			
	}System.out.println(mul);
      
}

}

output :0

3.process:

public class Print3multification {

public static void main(String[] args) {
	int n=100;
	int i=1;
	while(i<=n) {
		int mul=3;
		mul=mul*i;
		i++;
			
		System.out.println(mul);		
	}
      
}

}
output:
3
6
9
12
15
18
21
24
27
30
33
36
39
42
45
48
51
54
57
60
63
66
69
72
75
78
81
84
87
90
93
96
99
102
105
108
111
114
117
120
123
126
129
132
135
138
141
144
147
150
153
156
159
162
165
168
171
174
177
180
183
186
189
192
195
198
201
204
207
210
213
216
219
222
225
228
231
234
237
240
243
246
249
252
255
258
261
264
267
270
273
276
279
282
285
288
291
294
297
300

Doubt:
could you please tell me what is the difference between each program. Could you please elaborate it. I don’t understand the differences