Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <ctype.h>
- int main()
- {
- FILE * in = fopen("podatoci.txt", "r");
- int barana_cena;
- scanf("%d", &barana_cena);
- char niza[1000];
- int cena, godina;
- while(fscanf(in, "%s%d%d", niza, &godina, &cena) != EOF) {
- if(cena >= barana_cena) {
- printf("%s %d %d\n", niza, godina, cena);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement