#include <stdio.h>


int main(void)

{

    int i, j, count = 0;

    int A[5] = {1, 2, 3, 4, 5};

    int B[5] = {5, 4, 3, 2, 1};


    for(i = 0; i < 5; i++)

    {

        for(j = 0; j < 5; j++)

        {

            if(A[i] <= B[j]);

            {

                count++;

            }

        }

        printf("%d\n", count);

        printf("\n%d %d", A[i], B[j]);

        count = 0;

    }


    for(j = 0; j < 5; j++)

    {

        printf("\n%d", B[j]);

    }


    return 0;

}


배열 A와  B를 비교하는 부분에선 B에 쓰레기 값이 들어가고 밑에 배열 B를 비교 안하고 출력하는 부분은 값이 제대로 나오는데 왜 그런건가요?