fork download
  1.  
  2.  
  3. class WhileLoop
  4. {
  5. public static void main(String[] args)
  6. {
  7. int num = 3;
  8. System.out.println("Here are multiples of 3 between 3-100: \n ");
  9. while(num < 100)
  10. {
  11. System.out.println(num);
  12. num = num + 3;
  13.  
  14. }
  15.  
  16. }
  17. }
  18.  
Success #stdin #stdout 0.06s 27772KB
stdin
Standard input is empty
stdout
Here are multiples of 3 between 3-100: 
 
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