Adding issue | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Adding issue

why using Int using variables you can't add like 8.5 and 2.5

29th Oct 2018, 12:11 PM
Pacis Ishimwe Hanyurwimfura
Pacis Ishimwe Hanyurwimfura - avatar
1 Answer
+ 4
for int values you can't add a decimal values,to add it you need to use float datatype
29th Oct 2018, 12:16 PM
Adarsh.n. Bidari
Adarsh.n. Bidari - avatar