code for entering a paragraph in C language
How to enter a paragraph in C language?
If you are asking about taking an entire paragraph as input text, then you need to use libraries for the same. Depending on which C you are using:
Turbo C: conio.h
Unix versions: curses.h
Reply:I don't know of such thing in C. Perhaps you're thinking of paragraph in terms of HTML coding? In HTML, %26lt;p%26gt; and %26lt;/p%26gt; are used to enclose a paragraph.
In C, you can manipulate and use the newline special character to do so; that is \n (backslash and the letter n).
Many newline special characters make up many newlines.
Reply:Use \n and \t.
Eg
printf("\tHello, there!\nHow you doin?\nSee ya later");
OUTPUT
Hello, there!
How you doin?
See ya later
\t - TAG SPACE
\n - NEW LINE
Senthil
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment