Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package skola;
- import java.util.Scanner;
- /**
- *
- * @author Felix 1
- */
- public class Uppgift82 {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- Scanner inmatning = new Scanner(System.in);
- int[] fält = new int[5];
- for(int i = 1; i <= 5; i++)
- {
- fält[i - 1] = i;
- }
- for(int i = 4; i >= 0; i--)
- {
- System.out.println(fält[i]);
- }
- }
- }
Add Comment
Please, Sign In to add comment