Advertisement
myrdok123

01. Numbers Ending in 7

Jan 28th, 2024
577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. package W04ForLoop.Exercises;
  2.  
  3. public class P01NumbersEndingIn7 {
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement