Writing java expression for arithmetic expression

preview_player
Показать описание
#Writing java expression for arithmetic expression
Рекомендации по теме
Комментарии
Автор

Suppose x, y, and z are int variables and x=2, y=5, and z=6. What is the output of each of the following statements?
1. System.out.printIn ( " x = " + x + ", y = " + y + ", z = " + z ) ;
2. System.out.printIn ( " x + y = " + ( x + y ) ) ;
3. System.out.printIn ( " Sum of "+ x + " and " + z + " is " + ( x + z)) ;
Could you answer that for me...? Or give an explanation? Sir

mamadlucki
welcome to shbcf.ru