Computer Science, asked by sofiey, 2 months ago

Write a C Program to print
the following:
I
am
from
Dibrugarh​

Answers

Answered by anindyaadhikari13
3

\texttt{\textsf{\large{\underline{Solution}:}}}

The given co‎de is written in C.

#include <stdio.h>

int main() {

   printf("I\nam\nfrom\nDibrugarh");

   return 0;

}

\texttt{\textsf{\large{\underline{Explanation}:}}}

  • 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