Skip to the task
Layout
Back to classic view

You are looking ahead. Your place is still task 1: Style.

CHECKTask 17 of 23 · step 9: Drills: check yourselfWhat does it look like after Ctrl+Alt+L?
What does it look like after Ctrl+Alt+L? in practice/02/

What does this function look like after Ctrl+Alt+L? What will you still have to fix by hand?

Details & hint
int f(int x){int y;if(x>5)y=1;else y=2;return y;}

Stuck? Each statement on its own line, the if and else branches indented but without { }. The braces, and names in place of f, x, y, you add yourself.

practice 02 CMakeLists.txt Code Diff
UNCHANGED This step does not change this file.
add_executable(p02_card main.c)
target_link_libraries(p02_card PRIVATE course_input)