Describe your bug
In the third output it should be “N is divisible by only A” but it is showing “N is divisible by A and B”
In the third output it should be “N is divisible by only A” but it is showing “N is divisible by A and B”
Yeah, so you have done something wrong in your code. Try to debug it.
Heyya,
If you’re using python3 to solve this this problem then cross verify it with my code as I am getting the desired output.
Hope It Helps !
Add “and” operator in your if else statement