Write a C program to find number of perfect squares between A and B (both inclusive)?
Done. Wrote it.
But I’m not sharing it.
can you give some hint about the logic?
@mitalishri , you don’t understand it, do you ? If you had asked the question in a better way rather than " Write a code to do blablabla " , we might have helped you. Edit your question. Explain what you tried, and where you failed. Then, someone might help you.
int(sqrt(B)) - int(sqrt(A)) should give the answer.