public class Inputnumber
{
public static void main(String args[])
{
int c;
int x;
int [] array;
array = new int[10];
c=0;
while(c<=9){
SimpleInput z ;
z = new SimpleInput();
x = z.getInt("Please Enter an Integer");
array[c]=x;
c+=1;
}
c=9;
while(c>=0){
System.out.println(array[c]);
c-=1;
}
}
}
No comments:
Post a Comment