Advertisement
silviasj

Numbers ending in 7

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