Summary This assignment involves writing a computer program
Solution
#include <stdlib.h>
 #include <stdio.h>
 #include <math.h>
 
 main()
 {
    FILE *input, *output;
    char ch;
    int N;
    int count = 0;
    int temp = 0;
   
    input = fopen(\"input1.txt\",\"r\");
    output = fopen(\"output1.txt\",\"w\");
    fscanf(input, \"%d\",&N);
   
    double first_var[N];
    double second_var[N];
       
    for(count = 1; count<N+1;count++)
    {
        fscanf(input, \"%lf\",&first_var[temp]);
        printf(\"%lf\ \", first_var[temp]);
        temp = temp+1;
    }
   
    temp = 0;
    for(count = N+2; count<=2*N+1;count++)
    {
        fscanf(input, \"%lf\",&second_var[temp]);
        printf(\"%lf\ \", second_var[temp]);
        temp = temp+1;
    }
   
    for(temp = 0; temp < N; temp++) fprintf(output, \"%lf %lf \ \", first_var[temp], second_var[temp]);
 }

