#include #include int main() { int i, currentState = 0; char string[30], c; printf("Enter any string: "); scanf("%s", string); for(i=0; i