Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDevarsh Shukla
Courses Plus Student 335 PointsError
while(true)
{
continue;
Console.WriteLine("Ribbit") // ; missing over here so gives compilet error in REPL. I have tried it
}
Console.WriteLine("Croak");
1 Answer
Steven Parker
231,248 PointsThe code block seems to be missing the close brace ("}").
But perhaps a more serious issue is that the first statement in the loop is "continue;
" This will cause the loop to repeat without executing any of the following code, and since the loop condition is always "true
" it will go on forever.