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
#include <stdio.h>
char word[80];
int i,j;

printf("Enter any word:  ");
while  (word[i] != '\0')
 if (word[i] == word[i+1])
   while  (word[i] == word[i+j])
   printf("%d consecutive %c\n",j,word[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
+1 vote
3 answers 3.9k views
0 votes
1 answer 87 views
87 views asked by felin (8.4k points) 10 15 20
0 votes
1 answer 14 views
14 views asked by felin (8.4k points) 10 15 20