Advertisement
myrdok123

01. Numbers Ending in 7

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