/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone { { long k = 0; int base = 2; for (long a = 1; a <= 10; a++) { k += (base*a); lista.add(k); } //base 3 k = 0; base = 3; for (long a = 1; a <= 10; a++) { k += (base*a); lista.add(k); } } }
Standard input is empty