رد: 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:
...
|