codice:#include <stdio.h> #include <string.h> main() { FILE *file = fopen ("text.txt","r"); FILE *fileOut = fopen ("result.txt","w"); char buffer[100]; int i=0; char *string; while (fgets(buffer,100,file) != NULL) { string = strtok(buffer,"\n\t\r"); while (string[i] == (i+48)) i++; fprintf(fileOut,"%d\n",i); i = 0; } }![]()