Advertisement
CoineTre

1.Numbers Ending on 7

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