sarahazlan
sarahazlan sarahazlan
  • 28-04-2022
  • Computers and Technology
contestada

Give the value of following Java expressions.

false || 6 > 12 && !(3==7)

Respuesta :

Аноним Аноним
  • 28-04-2022

Answer:

public class Program

{

public static void main(String[] args)

{

int j=18;

int sum=0;

for (int i =1; i<7; i++)

{

sum=sum+(i*(j-2));

j=j-2;

}

System.out.println(sum);

}

}

Explanation:

Variables used:

j : controls the first number in product and decreases by 2 each time the loop runs.

sum: saves the values of addition as the loop runs.

Answer Link

Otras preguntas

Please help what is the scale factor i am very confused
Pablo the trainer has to solo work out plans that offers his clients plan a and Plan B each client does either one or the other not both on Friday there are two
EFGH is a parallelogram. Find the measure of:FG and EG​
will give brainiest if you answer!!
solve the simultaneous equation y = x^2 and y = 3x - 2
mention the causes of conflict.​
ANS this fast pls will get brainlist Write the difference between national park and wildlife reserve?
The following list includes several examples of chemical groups commonly found in biomolecules: Hydroxyl group (−OH) Amino group (−NH2) Carboxyl group (−COOH)
why is the g7 considered controversial
Write 64 as a power of 4.