test cases

sir, in many programs i have seen. if there is a tc variable which is nothing but test cases and the next line has some input. if the test cases value is 1 then the compiler is directly inputing the input value rather the test case value first and this is giving me wrong output.

I haven’t experienced this. Can you give one or two examples of problems in which you have seen this? I don’t see any submitted problems on your profile so I can’t guess which you are talking about.