Advertisement
myrdok123

08. Divisible by 3

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