From the course: C Essential Training

Unlock the full course today

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

Challenge: Build the foundation

Challenge: Build the foundation - C Tutorial

From the course: C Essential Training

Start my 1-month free trial

Challenge: Build the foundation

(upbeat music) - [Instructor] This course's project has you write code that generates output in a grid pattern as shown here. This program showcases the skills taught in this course, and its code is built one step at a time, which is how all programs are built. Your task for this challenge is to build the foundation for the course challenge. Write code that includes both the stdio and stdlib header files. Like all C programs, the code features the main function. This function features a single statement for now, return, which sends the value zero back to the operating system. To provide more support for your later efforts to modify the code, you must also add comments. Comment before the main function, stating that it generates multiple lines of output. In the main function, provide three comments to document the program's eventual three steps to get and verify input, to avoid out of range values and to process the rows.…

Contents