Menu Driven Program

Hi Mowcius,

I think I found the error in your code

  if(line > 2){
  line = 2;
  prognumber++;
  [glow]}[/glow]
  if(prognumber > 4){
  prognumber = 5;
  }
[glow]//}[/glow]
  menu();
  }

I moved the } bracket from the commented out section to the other highlighted section and now I doesn't lock up.

I think what was happening is that when you press 2 button simultaneously it would make the line number = 1 and the prognumber >4 so the if statement would allow it to go though..

What do you think

Ben