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 yourself

What does it look like after Ctrl+Alt+L?

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

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.