cesarnascimento

for todos numeros de 1 a 100

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