سلآآآآآآآآآآآآآآآآآم
ابغآآآ اعرف ايششش تعمل System.out.printf>> ايشش وظيفتهاا
زي المثآآل
For questions 10–12, assume the following class declaration:
1 public class Value
2 {
3 public static void main( String args[] )
4 {
5 intx;
6 intxLimit;
7
8 /* assign values to x and xLimit here */
9
10 while ( x<= xLimit )
11 {
12 x++;
13 System.out.printf("The value of x is %d\n", x );
14 } // end while
15
16 System.out.printf("The final value of x is %d\n", x );
17 } // end main
18 }// end class Value
10. What will be the output if the following code is placed at line 8 of the class?
1 x = 1;
2 xLimit = 5;
Your answer:
11. What will be the output if the following code is placed at line 8 of the class?
1 x = 1;
2 xLimit = -2;
©
Your answer:
12. What will be the output if the following code is placed at line 8 of the class?
1 x = 10;
2 xLimit = 5;
Your answer:
...
وال %d كيف استخدمهاا وليشش وسط ال" %d"
وسلاامتكم
لاتطوولون عندي هوم ورك بكرررررررا