+ 1
Zodiac project
Is there away to do this code without so many lines of if statements? https://code.sololearn.com/c750YF2rUU6L/?ref=app
2 Answers
0
I mean, you COULD do it in a few lines using ternary operator..
0
I put parts of the code into function and put array, condition and loop to work
https://code.sololearn.com/cAgtf6233psq/?ref=app