Related to data type

it means it will show 2 in place of 2.5 and one more thing while si was float why it was not showing 2.00?

Yes…if the final data type is int, 2.5 will be converted to 2.
If final data type is float , and you divide prt by 100.0 ,then it will give output as 2.5
Please share the code which you are referring to so that i can check.

@avverma11057 Check the output of this code

This will help you understand