Want to improve your coding logic !!!!
have look on this article

https://www.geeksforgeeks.org/i-cant-use-logic-in-programming-what-should-i-do/