Computer Science, asked by gaurireshmi07, 1 month ago

1. If int k=20; what is the output of k++ +k?
2. System.out.println(4*8/3+6-12%5*7+9-1);
3. Find the final value of m:
int m=2,k=4;
m-=++m*m++/++k+k++ - m++*k;
4. Find the final value of a:
int a=48,b=13;
a+=b++*5/a++ +b;

Answers

Answered by moolchandparjapath
0

Answer:

Hope it helps have a good day

Attachments:
Answered by swastikasharma1234
0

Answer:

1.The output is:-

k=k+k++ - ++j + k

k=5+5-10+6

k=16-10

k=6

so,output is:-

6

10

4. a+=b++*5/a+++b

'a+=b' means add b to a.

b++' means add 1 to b

Same goes for a++

This can be written as,

(a+b+1)*5/a+1+b

Inserting values,

62*5/62

Which is equal to 5

Explanation:

i wasn't able to solve part b and c but i was able to solve these 2

so your welcome, i tried my best to do this ☻

Similar questions