Class Assignment

What is wrong in this code .None of the test cases were passed

output has #t th value not the value we input
so it ll be 1 2 3… till t

So what to do then? Should I change the test case loop?

no your line 9 shoud be
System.out.println("#"+i+" : "+ans);
if thi solves your doubt please mark it as resolved :slight_smile: