1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Salsk061 [2.6K]
3 years ago
15

What will be displayed after the following statements have been executed? int x = 15, y = 26, z = 32; x = x + 12; y = y/6; z -=

14; System.out.println (x = " + x + ", y = " + y + ", z = " +z);"
Computers and Technology
1 answer:
Alex_Xolod [135]3 years ago
5 0

Answer:

Following are the output of the statements

x = 27, y = 4, z = 18.

Explanation:

Following is the description of the statements.

  • Initially, the variable x is initialized with 15,y is initialized with 26 and z is  initialized with 32
  • The statement x=x+12 means adding the value of variable x by 12 and store in "x" variable so x=15+12=27
  • The y = y/6; statement gives the result 4 because the "/" operator gives the quotient.So 26/6 gives 4.
  • z -= 14; statement gives the result 18 because it subtracts the value of z by 14 and stores in the "z" variable.
  • Finally the System.out.println () method print the value of "x","y" and "z" variable
You might be interested in
Your job is to write a basic blurring algorithm for a video driver. The algorithm will do the following: it will go through all
nekit [7.7K]
I’m pretty sure answer is B let me know if I’m wrong
4 0
4 years ago
A computer may keep freezing if it's software is up-to-date? <br> True <br> False
tester [92]

Answer:

false

Explanation:

6 0
4 years ago
At the heart of every computing device is a(n) _______________, which is usually a single, thin wafer of silicon and tiny transi
SSSSS [86.1K]

Answer:

CPU

Explanation:

Central Processing UnitUnit

5 0
3 years ago
1) These are operators that add and subtract one from their operands. A) plus and minusB) ++ and --C) binary and unaryD) conditi
GREYUIT [131]

Answer:

1) B: ++ and --

2) B: 111... and on forever

Explanation:

++ and -- in most programming languages are used for incrementing(adding) by 1 or decrementing(substracting) by 1.

The code will output 111... and on forever because the while loop was not covered in curly braces.

5 0
3 years ago
True or false word inserts text to the right Of the insertion point
uysha [10]
False.................................
3 0
3 years ago
Other questions:
  • Jeff is preparing for a presentation on effective communication skills. He has to face an audience of over 50 people. Which stra
    9·2 answers
  • Select the correct answer.
    8·1 answer
  • If a person was on board a hypersonic airplane what do you think they would be able to see as they look out a window looking in
    13·2 answers
  • What are the two types of formulas in excel
    9·1 answer
  • How do i get the schools admin password for the good wifi
    10·2 answers
  • What is syntax?
    15·1 answer
  • How can a user remove or delete a Pivot Table?
    8·1 answer
  • Body LanguageWhat are the nonverbal communications mentioned in the video? And how the video explained the meaning of these?
    15·1 answer
  • Which type of information should never be given out on social media?
    5·2 answers
  • An algorithm to find the perimeter of a triangle
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!