Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- int main(void)
- {
- int i,b,count=1;
- FILE *read;
- read = fopen("input.txt","r");
- int no[10];
- while((fscanf(read,"%d",&b))!=EOF)
- {
- no[count]=b;
- count=count+1;
- }
- fclose(read);
- for(b=1;b<count;b++)
- {
- printf("%d\n",no[b]);
- }
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement