yovkovbpfps

For Loop Number Ending on 7

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