damesova

Numbers Ending In 7 [Mimi][PB]

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