cesarnascimento

for pares de 1 a 600

May 26th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.21 KB | None | 0 0
  1. package exercicios;
  2.  
  3. public class pares1a600 {
  4.  
  5.     public static void main(String[] args) {
  6.         for(int i = 1;i <=600;i++){
  7.             if(i % 2 == 0){
  8.                 System.out.println(i);
  9.             }
  10.         }
  11.  
  12.     }
  13.  
  14. }
  15. // pares 1 a 600
Add Comment
Please, Sign In to add comment