Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- int main(int argc, char *argv[])
- {
- int limite, i;
- FILE *fp;
- fp=fopen("multiplos7.txt","w");
- if(fp==NULL)
- printf("erro ao criar arquivo!");
- limite=atoi(argv[1]);
- for(i=1;i<=limite;i++)
- fprintf(fp,"%d\n",i*7);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment