C programming
int main()
{
char word[200];
printf("Enter a Paragraph within 200 Words :\n");
scanf("%[^\n]s",word);
printf("Your Paragraph is :\n%s\n",word);
return 0;
}
Try it Yourself ➠
Accept paragraph using scanf() in C
26 July
0
Write a program (WAP) in C to accept paragraph using "scanf()".
#include<stdio.h>int main()
{
char word[200];
printf("Enter a Paragraph within 200 Words :\n");
scanf("%[^\n]s",word);
printf("Your Paragraph is :\n%s\n",word);
return 0;
}
Must Read :-
Previous article
Next article
Leave Comments
Post a Comment