Computer Science, asked by anuragkumarSwag2120, 5 months ago

Int x=5, y=10, z=11; double c= x*y + z/2; system.out.println(c)

Answers

Answered by BrainlyProgrammer
4

Answer:

Your answer is 55.0

Explanation:

c=x*y+z/2

=5*10+11/2

=50+5

=55.0

Answered by anindyaadhikari13
4

Question:-

  • Write the output of the following code.

Solution:-

Given code,

int x=5, y=10, z=11;

double c= x*y + z/2;

System.out.println(c);

Here,

c=x*y+z/2

=50+5(integer division)

=55.0

Hence,

output:- 55.0

Output:-

55.0

Similar questions
Math, 5 months ago