I'm going to be giving a presentation a little later to a student ACM chapter about how they can utilize debugging tools to solve problems in their code. Any ideas for a (preferably short) bit of example code I can use to demo breakpoints, variable inspection, etc.?
My main worry is that I don't want to patronize them by using "Hello World" but I don't want to show where I'm going wrong in a real-world (thousands-of-lines) program either. I'm trying to find that happy medium.
Thanks to all!