Write a C Program to print
the following:
I
am
from
Dibrugarh
Answers
Answered by
3
The given code is written in C.
#include <stdio.h>
int main() {
printf("I\nam\nfrom\nDibrugarh");
return 0;
}
- Line 1: Includes standard I/O header file.
- Line 2: Start of main method.
- Line 3: Prints the text on the screen.
- Line 4: Returns 0.
- Line 5: End of main.
Note: To add a new line, use this escape sequence - \n
See the attachment for output.
Attachments:
Similar questions