Computer Science, asked by baski3d, 6 months ago

1. If p = 5 Find w = ++p + --p + p--
2. If s = 10 find a= s++ + ++s + --s
3. If g = 25 find y= g + --g + g
Please solve all correctly and no scam.

Answers

Answered by amityadav7246
1

Answer:

1)20

3)30

3)74

Explanation:

++p means. add one than use

p++means use than add

it is for bath +-

Answered by anindyaadhikari13
1

Question 1:-

If p=5, find w when w=++p + --p + p--

Solution:-

Given,

p=5

w = ++p + --p + p--

Or,

w=6+5+5

Or,

w=16

Now,

p=4

Answer:-

w=16

p=4

Question 2:-

If s=10, find a when a=s++ + ++s + --s

Solution:-

Given,

s=10

a=s++ + ++s + --s

Or,

a=10+12+11

Or,

a=33

Now,

s=11

Answer:-

a=33

s=11

Question 3:-

If g=25, find y if y=g+--g+g

Solution:-

Given,

g=25

y=g+--g+g

Or,

y=25+24+24

Or,

y=73

g=24

Answer:-

y=73

g=24

Similar questions