New course! Every coder should learn Generative AI!
Try a free lesson+ 1
whats the difference between next and nextline
2 Answers
+ 7
next gets everything before the first space, for example
input: Hello there
next will get only "Hello"
nextline will get "Hello there"
0
thanks