عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 21-11-2011, 04:51 PM   #97

kkaauu

Toma Bwz

الصورة الرمزية kkaauu

 
تاريخ التسجيل: Mar 2011
التخصص: IT =)
نوع الدراسة: إنتظام
المستوى: الخامس
الجنس: أنثى
المشاركات: 195
افتراضي رد: Cpcs 202 شروحات وحلول وواجبات الجافا

سلآآآآآآآآآآآآآآآآآم

ابغآآآ اعرف ايششش تعمل 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"

وسلاامتكم

لاتطوولون عندي هوم ورك بكرررررررانقرتين لعرض الصورة في صفحة مستقلة

 

توقيع kkaauu  

 

million friends is not a miracle
the miracle is to make a friend who will
stand by you when millions are against you

\
/

 

kkaauu غير متواجد حالياً   رد مع اقتباس