Why invalid this code? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuesta
0
the if need () if (x<0)
11th Jun 2017, 2:07 PM
sneeze
sneeze - avatar