• + 0 comments

    I just modified the already made code...

    Changed the logic of scanning inputs to store values at the end of the array instead of at the start

    scanf("%d", &arr[num - (i + 1)])