Problem:
My solution:
I am failing just one test cas, can anyone tell me which case i might be failng
Problem:
My solution:
I am failing just one test cas, can anyone tell me which case i might be failng
This is the statement that’s not correct
Let’s say l=2 and r=4. 2 is not divisible by 3 and nor is 4, so your program will output 0 even though it should output 1 (for the integer 3).
Removing this statement completely solves it: