Conversion(Fahenheit to Celsius)


help to reolve it,the results are not correct.

@Yukta https://ide.codingblocks.com/s/130636

Check it now.

How to add the constraints i used earlier in while loop?

You do not have to add the constraints anywhere. Constraints are given in the question as range of values/input, for which your code should work properly.
Let us say that in a question it is given that you have to take N inputs in an array.
And the constraint given is 1<=N<=100

So, here the constraints suggests that N can be any value less than or equal to 100. So you should make an array of size at least 100 for all test cases to pass. If you have created the array of size less than 100 say 90. So for the test cases in which N> 90, your code will not work.
So constraints are only there to suggest you the possible range of inputs.

Hope this helps :slightly_smiling_face: