You are on page 1of 1

Un algoritmo que imprima lo siguiente

10 20 30 40 50

12 22 32 42 52

14 24 34 44 54

16 26 36 46 56

18 28 38 48 58

20 30 40 50 60

package bonus;

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

/**
* @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=10;i<=20;i=i+2)
{
for (int j=i; j<=i+40; j=j+10){
System.out.print(j + "\t");

}
System.out.println();
}

}
}

You might also like