Pages

Showing posts with label count. Show all posts
Showing posts with label count. Show all posts

Tuesday, February 17, 2015

C Program to Count no of words in a string

C++ Program to Count no. of words in a string

#include<iostream.h>
#include<conio.h>
#include<stdio.h>

void main()
{
clrscr();
char a[20];
int i,count=0;
cout<<"Enter a string:";
gets(a);
for(i=0;a[i]!=
Read more »