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