The repair station has two bays, each with two drawers. Use the shelf example's structure, but choose the ranges and wording for these drawers.
for loop for bays 1 through 2 and an inner for loop for drawers 1 through 2. Inside the inner body, print the bay and drawer as Bay 1 Drawer 1 and so on, followed by a newline.Edit main.c, Run, then Submit. The complete output should be:
Bay 1 Drawer 1
Bay 1 Drawer 2
Bay 2 Drawer 1
Bay 2 Drawer 2
The drawer count must restart for bay 2. If it does not, check that its initialization belongs to the inner for. Keep one print call inside the nested loops rather than writing four fixed lines; the output check alone cannot distinguish those approaches.
The workshop can now repeat labels and totals. In the next section, functions will let you give a reusable piece of work its own name, just as printf already has one.
Begin the drawer loop inside the body of the bay loop.