Mine
public text v1 · immutable#include <stdio.h>
main()
{
int x,y;
FILE *readfile;
readfile = fopen("result.txt","r");
if (readfile == NULL)
printf("error reading the file\n");
else
{
y = 0;
while(fscanf(stdin,"%d",&x)!=EOF)
y = y + 1;
}
fprintf(stdout, "total of number have in the text is: %d\n",y);
}