[Solved] How to format/indent multiple line text constants [closed]


You want to avoid using \[newline] inside string constants.

The c compiler will concatenate string constants for you, so you can format it like this:

printf("Program information\n"
       "The program reads in the number of judges and the score from each judge.\n"
       "Then it calculates the average score without regard to the lowest and\n"
       "highest judge score. Finally it prints the results (the highest, the \n"
       "lowest and the final average score).\n\n");

0

solved How to format/indent multiple line text constants [closed]