what i am trying to do is to print no solution if the value of x and y is not there. but it is printing no solution in loops even if the the value of x and y exists.
for example if i enter 271, the x is 5 and y is 7 and then loop should end but it keeps on going on print no solution as well.
it is still print no solution in multiple loops. i want it t print "no solution" once if the values are not there. and not to print " no solution if the value is there.
I am using 271 as the value of n. x is 5 and y is 7.