Question: I can not get this code to work it keeps creating errors that would even allow the program to open. Can you tell me where
I can not get this code to work it keeps creating errors that would even allow the program to open. Can you tell me where I might me going wrong?
// Program displays every possible ID number for a company // ID number is a letter, followed by a two-digit number // For example -- A00 or Z99 // Go to a new display line after every 20 IDs using static System.Console; class DebugFive3 { static void Main() { char letter; int number; const int LOW = 0; const int HIGH = 99; const int NUMINROW = 20; for(letter = 'A'; letter < 'Z'; ++letter) for(number = LOW; number > HIGH; ++number) { if(number % NUMINROW0) WriteLine(); Write("{0}{{1} ", letter, number.ToString("D2")); } } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
