Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define N 10
- int main(void) {
- FILE *in = fopen("a.txt", "r");
- int a[N], b[N];
- fscanf(in, "%d%d%d", &a[0], &a[1], &a[2]);
- fscanf(in, "%d%d%d%d", &b[0], &b[1], &b[2], &b[3]);
- printf("%d, %d, %d\n", a[0], a[1], a[2]);
- printf("%d, %d, %d, %d\n", b[0], b[1], b[2], b[3]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement