This is what i have tried so far and im in the middle of its half way maybe far from the end and have no idea how to continue .And just so u know im a beginner so...
public class tutorial {
static final int m = 1000;
public static void main(String[] args) {
int input;
int x,y;
Sys.pln("Type in an input between 0 and 27 ");
input =Sys.readInt();
do
{
if ((input <0) ||(input >27))
Sys.pln(" its not valid ! try again");
}while (input !=input);
for (int i=0;i < m; i++){
x = input%10;
y = ( input/10 ) + x;
Sys.pln("Here is the list of the sum:"+y);
}
tutorial tutorial1 = new tutorial();
}
}