C Programming Code Examples C > Miscellaneous Code Examples C Program to Accept Paragraph using scanf C Program to Accept Paragraph using scanf Here scanf will accept Characters entered with spaces. It also accepts the Words , new line characters . %[^\t]s represent that all characters are accepted except tab(t) , whenever t will encountered then the process of accepting characters will be terminated. #include<stdio.h> int main() { char para[200]; printf("Enter Paragraph : "); scanf("%[^\t]s", para); printf("Accepted Paragraph : %s", para); return 0; }