Untitled

                Never    
Java
       
import java.util.Scanner;
public class main6 {
    public static void main(String[] args) {
//2.ג.10        
// הגדר מערך של 5 מספרים שלמים וקלוט לתוכו ערכים. בדוק האם ערך כל איבר גדול מערך האיבר שלפניו והצג בסוף הודעה מתאימה
        Scanner s = new Scanner(System.in);
        boolean check = false;
        int[] numbers = new  int[5];
        for (int i=0; i<numbers.length;i++){
            System.out.println("please enter number");
            numbers[i]=s.nextInt();
        }
// loop that checks if the num in array is bigger then the num before it- returns boolean        
        for (int i = 0;i<numbers.length-1;i++){
            if (numbers[i+1]>numbers[i]){
                check = true;
            }
            else{
                check=false;
            }
        }
        System.out.println(check  ? "yes" : "no");
    }
}

Raw Text