Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

C Books Guide and List
C++ Books Guide and List
Best Java Books

0 votes
30 views
#include <stdio.h>
main()
{
char word[80];
int i,j;

printf("Enter any word:  ");
scanf("%s",word);
i=0;
while  (word[i] != '\0')
 {
 if (word[i] == word[i+1])
   {
   j=1;
   while  (word[i] == word[i+j])
     j++;
   printf("%d consecutive %c\n",j,word[i]);
     }
    i++;
  }
}
asked by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

Related questions

0 votes
1 answer 4.2k views
4.2k views asked by anonymous
0 votes
1 answer 1.5k views
1.5k views asked by sunny (11.4k points) 14 22 29
+1 vote
3 answers 3.9k views
0 votes
1 answer 60 views
60 views asked by felin (8.4k points) 10 15 18
...