From the course: C Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Challenge: Work the grid

Challenge: Work the grid - C Tutorial

From the course: C Essential Training

Start my 1-month free trial

Challenge: Work the grid

(bright music) - [Instructor] This challenge presents the largest single update to the course project so far. Start your solution from the chapter three challenge or use my solution provided in exercise file 04_14, challenge one. Remove all the statements between the comment to process the rows and the return statement in the main function. You no longer need to output the value input. Instead, you must write a nested loop to process the grid. Further, you must write code that outputs every other row as a separator consisting of equal signs. Onto the details. The nested loop has an outside loop that processes the rows, which is the value input. Two inner loops are present. One processes the grid values and the other processes the separator row. For odd rows, output the current row number plus the letters A through J in pairs. Row letter, such as 1A, 1B and so on. For even rows, output 40 equal signs. Here are some…

Contents