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:-

No comments:

Post a Comment