Challenge: Quotes and Tabs
Completed
Print these two lines. The second line starts with a tab:
He said "C is cool" The end
Input
None.
Output
The two lines above.
Example
Output
He said "C is cool" The end
Editor
C
Hints
Write \" to put a double quote inside the text.
\t is a tab.
Solution explanation
Escape sequences start with a backslash: \" prints a quote and \t a tab.
Show solution
#include <stdio.h>
int main() {
printf("He said \"C is cool\"\n");
printf("\tThe end\n");
return 0;
} Output
Answer
You can practice without logging in. Log in to save completion.
Save your progress
You're practising as a guest, so your progress won't be saved.
- Track every lab you complete
- Earn verifiable lab certificates
- See your progress in every module