deyanivanov966

FOR LOOP - EXERCISE 01. Numbers Ending in 7

Oct 9th, 2020 (edited)
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class a1 {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.  
  7.         for (int i = 1 ; i <=1000; i++) {
  8.  
  9.  
  10.             if (i % 10 == 7) {
  11.                 System.out.println(i);
  12.             }
  13.         }
  14.     }
  15. }
Add Comment
Please, Sign In to add comment