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

kkaauu

Toma Bwz

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

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

شكرا الله يجزاك خير

بسس ,, ي ليت تحلوو مثاال لاني حااسه ما أستوعبتهاا تمااااام


For questions 10–12, assume the following class declaration
public class Value
{
public static void main( String args[] )
{
int x;
int xLimit;

/* assign values to x and xLimit here */

while ( x<= xLimit )
{
x++;
System.out.printf("The value of x is %d\n", x );
} // end while

System.out.printf("The final value of x is %d\n", x );
} // end main
}// end class Value


. What will be the output if the following code is placed at line 8 of the class?

x = 1;
xLimit = 5;

Your answer:





. What will be the output if the following code is placed at line 8 of the class?

x = 1;
xLimit = -2;
©
Your answer:





. What will be the output if the following code is placed at line 8 of the class?

x = 10;
xLimit = 5;

Your answer:


...

 

توقيع 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 ; 21-11-2011 الساعة 05:55 PM.
kkaauu غير متواجد حالياً   رد مع اقتباس