Advertisement
veronikaaa86

08. Divisible by 3

May 11th, 2023
845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.20 KB | None | 0 0
  1. package basicSyntax;
  2.  
  3. public class P08DivisibleBy3 {
  4.     public static void main(String[] args) {
  5.  
  6.         for (int i = 3; i <= 100; i += 3) {
  7.             System.out.println(i);
  8.         }
  9.     }
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement