the program breaks the string into partsCode:#include <stdio.h> int main() { int i; char input[80]; printf("Enter a string please:"); gets(input); printf("The words are:\n"); for(i=0; input[i]<=80; i++) if(input[i]!=' ') printf("%c", input); else if(input[i]==' ') printf("\n"); return 0; }
but there is a problem, it stop in the for loop and print nothing....
how can i solve this problem??