Write a C program to display the following output a single printf()
I
Love
Computer
Science
Answers
Answered by
2
The given code is written in C.
#include <stdio.h>
int main() {
printf("I\nLove\nComputer\nScience");
return 0;
}
- Here, we have to display the given text using single printf() statement.
- So, to solve this question, we have to use escape sequence.
- '\n' - It creates a new line. So, here we can use this to achieve the result.
See the attachment for output.
Attachments:

Similar questions