I'm trying to solve this problem but it doesn't seem to work in any way. I tried to search for the problem but all other answers use methods or arrays and we haven't studied them yet so I have to solve the problem with loops only. This is the question:I'm trying to solve this problem but it doesn't