Advertisement
cesarnascimento

1 a 20 do lado for

May 30th, 2017
82
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 ex6 {
  4.  
  5.     public static void main(String[] args) {
  6.        
  7.         for(int i = 1; i <= 20;i++){
  8.             //System.out.println(i);
  9.             System.out.print(i+ " ");
  10.         }
  11.        
  12.     }
  13.     /* Cรฉsar N. */
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement