Printf format and for loop example