Showing posts with label C Program to Accept Paragraph using scanf. Show all posts
Showing posts with label C Program to Accept Paragraph using scanf. Show all posts

Wednesday, 13 June 2018

C Program to Accept Paragraph with spaces using scanf

#include<stdio.h>

int main() {
   char para[100];

   printf("Enter Paragraph : ");
   scanf("%[^\t]s", para);

   printf("Accepted Paragraph : %s", para);

   return 0;
}

OUTPUT:-