Advertisement
CoineTre

JF-Lab 08. Divisible by 3

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