On one line

You can invent your own language if you like:

pinMode ( { 2 .. 10 } , OUTPUT);

But it isn't C.

The big bad FOR shows it head again

Loops are a fundamental part of programming. May as well accept it.