Fix the stray error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
30th Nov 2019, 10:35 AM
Hima
Hima - avatar
3 Answers
+ 8
Hima other then stray invisible character your code should be run fine buy the range would be comes in double which can be fixed like this way. Use (int) casting to the double values like this ways. https://code.sololearn.com/cSqajJBkzwHC/?ref=app
30th Nov 2019, 10:53 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 2
I this you did copy paste your code so please remove blank space before each line and check again.
30th Nov 2019, 10:43 AM
A͢J
A͢J - avatar