Find the maximum consecutive 1's in a string of 0's and 1's. code example
Example: Find the maximum consecutive 1's in a string of 0's and 1's.
#include
#include
void main()
{
printf("Enter the string of '0's and '1's ");
char str[100];
int count1=0;
scanf("%s", str);
for(int i=0;i