Hey guys. I need to do a job in C that I have to create files with numeric sequences and create another file with the intersection of these numbers and such ... But I can not write these (int) in the file, type, it has to be 10 values , but at the time of execution I end up coming with much more values than expected.
printf("Entre com os valores do arquivo: \n");
for(cont=1; cont <= *argv[3]; cont++) {
scanf("%c", &ch);
fputc(ch, f1);
}
* argv [3] is the size that user entered for the amount of values.