print 3 numbers before asking a user to input an integer

Answer:
you can use an array to do this
Explanation:
(I've written this in java - I think it should work out):
Scanner input = new Scanner(System.in);
System.out.println("Enter an integer: ");
int userInt = input.nextInt();
int[] array = new int[userInt - 1];
for(int i = userInt-1; i < userInt; i--)
System.out.println(array[i]);