• + 0 comments

    What is the problem with this and in testcase 2 the input is 3 and 2 and the expected output is 5 which is logically impossible. The ans must be 3 and my code is also giving ans as 3.

    include

    include

    int main() { int n,p,i,j,mul,count=0; scanf("%d %d",&n,&p); for(i=1;i

    }