fill in the missing operator to decrease the value of x by one | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

fill in the missing operator to decrease the value of x by one

int x=42; x_; Console.Writeline(x)

27th Jun 2016, 11:13 PM
Deel John
Deel John - avatar
5 Answers
+ 1
x--
28th Jun 2016, 9:29 AM
Klaus
0
thanks appreciate your answers but will preferred Klaus x--
28th Jun 2016, 4:36 PM
Deel John
Deel John - avatar
0
you have to use "--" because "-1" is no operator.
29th Jun 2016, 7:43 AM
Klaus
- 1
x-1
28th Jun 2016, 5:53 AM
Ravi Teja
Ravi Teja - avatar
- 1
x--
28th Jun 2016, 2:05 PM
solomon
solomon - avatar