Computer Science, asked by guptakriti598, 6 months ago

(6)
=
and =
= = ?
6. What will be the output of the following code?
(a) int k=5,j=9;
k+= k++ - ++j + k;
System.out.println("k="+k);
System.out.println(“j=”+j);
(b) If int y =10 then find int z = (++y*(y+++5));
(C) Give the output of the following expression:
a+= a++ + ++a + --a + a--; when a = 7;
(d) What is the value of y after the execution?
y+= ++y + y-- + --y; when int y=8
7. Rewrite the following program segment using if-else sta
operator.
(a) String grade = (marks>=90)?“A”: (mark>=80)? “B”:
(b) nmission (sale > 5000) ? sale*10/100 : 0;
=​

Answers

Answered by Anonymous
0

Answer:

I got it the answer

Explanation:

please mark me as a brain list

Similar questions