Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Java by Mathias Fernström ( 15 years ago )
import java.util.*;
public class Uppgift2{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int n;
System.out.print("Ange antal tal:");
n = scan.nextInt();
int[] numbers = new int[n];
System.out.print("Ange talen: ");
for(int i = 0; i < numbers.length; i++){
numbers[i] = scan.nextInt();
}
System.out.print("Baklanges: ");
for(int i = numbers.length-1;i>= 0;i-- );{
System.out.print("%d",numbers[i]);
}
System.out.println();
}
}
Revise this Paste