Why 2**5 is32( int value) whereas 9**(1/2) 3.0( float value) | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Why 2**5 is32( int value) whereas 9**(1/2) 3.0( float value)

1st Apr 2020, 8:12 PM
Shruti
1 Réponse
+ 3
2 and 5 are integers, result will be integer. 1/2 ==> 0.5 it is float, result will be float
2nd Apr 2020, 1:23 AM
Meyrambek Sanzhar
Meyrambek Sanzhar - avatar