In the C language, for example, a line of code might be (1) a statement terminated by a newline, (2) a statement terminated by a semicolon, or (3) any line in the program terminated by a newline (comments included).
for (i=0; i<100; ++i) {printf("hello");} /* How many lines of code is this? */