English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

code for entering a paragraph in C language

2006-08-17 00:07:44 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

3 answers

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

2006-08-17 01:32:36 · answer #1 · answered by Indian_Male 4 · 0 0

I don't know of such thing in C. Perhaps you're thinking of paragraph in terms of HTML coding? In HTML,

and

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.

2006-08-17 07:17:30 · answer #2 · answered by dt_aiying 2 · 0 0

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

2006-08-17 07:24:13 · answer #3 · answered by Senthil 3 · 0 0

fedest.com, questions and answers