Computer Science, asked by AdeleDavis, 1 year ago

(c++%++a) - (++b*c) solve in java programming.
Do only if you know.....java


AdeleDavis: Ya sorry,
AdeleDavis: A = 2 B= 7and C=4

Answers

Answered by UnknownDude
0
(4%3)-(8*5)
=1-40
=-39

AdeleDavis: Thnx
AdeleDavis: Could you pls solve this for same values....
AdeleDavis: (++a/b++) * --c *b
Anonymous: (++a/b++)* --c *b will yield 9/56
Answered by Anonymous
1
Initial values:

a= 2
b=7
c=4

(c++%++a) - (++b*c)

Step 1: solving the first part

(c++%++a)

= 4 % (2+1) // c changes to 5 now

= 4%3

=1

New values:

a= 3

b=7

c=5

Second part :


(++b*c)

= (7+1)*5 // b changes to 8

= 8*5

=40

Now we have, 1-40

That gives : -39



Hope this helps!




-Sly

AdeleDavis: Thnx a lot
Anonymous: You're welcome
Similar questions