Untitled
Never
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
-
Untitled
40 sec ago
-
fhyfght
PHP | 18 min ago
-
I sheltered my neighbor for the night, she paid me with anal sex
27 min ago
-
CP💎 VÍDEO 😏 SLEEPING💤 TEEN GIRL 12yo🍭👧
29 min ago
-
Adult Telegram Channels
45 min ago
-
Untitled
45 min ago
-
Untitled
50 min ago
-
Untitled
51 min ago
-
Untitled
51 min ago
-
Untitled
55 min ago