שפת ג'אווה
פתחו אלגוריתם אשר הקלט שלו הוא שני ציונים של תלמיד והפלט שלו הוא מספר המציין כמה מן הציונים גבוהים מ-80 import java.util.Scanner; public class Grade { public static void main (String [] args) { Scanner in = new Scanner (System.in); int x , y , num1 , num2; System.out.print("Enter number of int x : "); x = in.nextInt (); System.out.print("Enter number of int y : "); y= in.nextInt () ; if (x > 80) { num1=x; } if (y>80) { num2=y; } } } איך ממשיכים מפה? תודה.
פתחו אלגוריתם אשר הקלט שלו הוא שני ציונים של תלמיד והפלט שלו הוא מספר המציין כמה מן הציונים גבוהים מ-80 import java.util.Scanner; public class Grade { public static void main (String [] args) { Scanner in = new Scanner (System.in); int x , y , num1 , num2; System.out.print("Enter number of int x : "); x = in.nextInt (); System.out.print("Enter number of int y : "); y= in.nextInt () ; if (x > 80) { num1=x; } if (y>80) { num2=y; } } } איך ממשיכים מפה? תודה.