Advertisement
kocev

Numbers0to40

Feb 19th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. public class Numbers1to40 {
  2.     public static void main(String[] args) {
  3.         for (int i = 0; i <=40 ; i++) {
  4.             if (i % 3 !=0) {
  5.                 continue;
  6.             }
  7.             System.out.println(i);
  8.         }
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement