• + 0 comments

    i ran my code using cpp. here in the first if of for loop x should assigned to 0 as x increments after each iteration so that for x==n, x will be 1