C Programming/Basic Output/Exercise 1
Appearance
This exercise is fairly simple and the purpose is to help familiarize yourself with outputting text to the console, which you will be doing a lot of, and helping you to also familiarize yourself with the escape sequences.
You're assignment is to write the C source code that will output this:
Use printf()
to write the text to the console. Use one call of printf()
for each line. This means you'll have to put a newline command at the end of each line. You could cram this all into one call of printf()
but that would look very cluttered and unorganized.
Don't forget that single and double quotes need to be escaped or else you will get compilation errors.
For the last line, use 3 horizontal tab escape sequences before the text.