Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.18 KB | None | 0 0
  1. public static void main (String [] args) {
  2.         int sum = 0;
  3.         for(int i = 100; i<=700; i++) {
  4.             if(i % 10 == 5) {
  5.             sum += i;
  6.             }          
  7.         }
  8.         System.out.print(sum);
  9.     }
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement