Computer Science, asked by kyosoma417, 5 months ago

Write the equivalent C statement using increment/decrement/assignment operator for the following.
1. m1 = m1+1;
2. age = age - 1;
3. a = a-b;
4. n= n*5;​

Answers

Answered by CoderRishav
5

Answer:

1) m1++ (increment operator)

2) age-- (decrement operator)

3) a -= b (assignment operator)

4) n*=5 (assignment operator)

here is the answer :)

please vote it :)

and mark as brainlist :)

Answered by anindyaadhikari13
6

Question:-

Write the equivalent C statements using increment/decrement/assignment operator for the following.

Answers:-

Question 1

m1=m1+1 can be written as,

m1+=1;

Or,

m1++;

Or

++m1;

Question 2

age=age-1 can be written as,

age-=1

Or,

age--;

Or,

--age;

Question 3

a=a-b can be written as,

a-=b;

Question 4

n=n*5 can be written as,

n*=5;

Similar questions