Related to data type

sir what will happen if we declare si as int but
expresion remains same like si=prt/100.0 what it will return a int value or float value?

pt/100.0 will be float but as you are putting it into a int bucket so si will be int
this is implicit type conversion

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask

@avverma11057
The doubt was reopened. Is your doubt resolved?

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