count number of words in a string in c
/*
* C Program to Count Number of Words in a given Text Or Sentence
*/
#include <stdio.h>
#include <string.h>
void main()
{
char s[200];
int count = 0, i;
printf("Enter the string:n");
scanf("%[^n]s", s);
for (i = 0;s[i] != '