Hi,
I have a problem. I have this code (reading a word and writing the number of it s characters), and I don't know how to add a for cicle to write every character of the word.
So can you help me?
Code:#include <stdio.h> #include <string.h> int main () { char szInput[256]; printf ("Enter a sentence: "); gets (szInput); printf ("The sentence entered is %u characters long.\n",strlen(szInput)); return 0; }