Why invalid this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why invalid this code?

int x = 10; for ( ; ; ) { if x > 0 Console.WriteLine(x); x -= 3; } for ๋ฌธ ์‚ฌ์ด์— ๊ฐ’์€ ์„ธ๋ฏธ์ฝœ๋ก  ๋นผ๊ณ  ์ƒ๋žต ๊ฐ€๋Šฅ ํ•˜์ง€ ์•Š๋‚˜์š”? ์กฐ๊ฑด๋ฌธ์€ ๋บ„ ์ˆ˜ ์—†๋Š” ๊ฑด๊ฐ€์š”? i dont write english well.. sorry. can we skip condition statements?

11th Jun 2017, 1:57 PM
์œค์„์ง„
์œค์„์ง„ - avatar
1 Answer
0
the if need () if (x<0)
11th Jun 2017, 2:07 PM
sneeze
sneeze - avatar