Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- FILE* f;
- int numar;
- if (fopen_s(&f, "in.txt", "rt") != 0) {
- printf("Fiser negasit");
- return 0;
- }
- while (fscanf_s(f, "%d", &numar) != EOF) {
- printf("%d ", numar);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement