You are on page 1of 1

Cree un programa que imprima lo siguiente:

3 5 7 9 11 13 15 17 19

4 6 8 10 12 14 16 18 20

5 7 9 11 13 15 17 19

6 8 10 12 14 16 18 20

7 9 11 13 15 17 19

8 10 12 14 16 18 20

9 11 13 15 17 19

10 12 14 16 18 20

11 13 15 17 19

12 14 16 18 20

package clase3;

/**
*
* @author Jhonny Alexander Sanchez Gonzalez
*/
import java.util.Scanner;
public class clase3 {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner scanner = new Scanner(System.in);
for(int i=3;i<=12;i++)
{
for (int j=i; j<=20; j=j+2){
System.out.print(j + "\t");

}
System.out.println();
}

}
}

You might also like