# Divisible Numbers

This script tests if an integer is divisible by 2 or 3. It asks for user input and prints a response after running multiple test statements. This is also an example of nested conditions. They can be used to test against a 2nd condition if the first condition evaluates to True.

```
#Use input to interactively add a number
#and convert it to an integer for use later
x = int(input('Enter an integer here: '))
#Test if integer is divisible by 2 with no remainder
if x%2 == 0:
#Nested condition that checks if the integer is also
#divisible by 3
if x%3 == 0:
print('Divisible by 2 and 3')
#Prints the else statement if the
#second if statement is False
else:
print('Divisible by 2 and not by 3')
#Second If statement that checks if the integer
#is divisible by 3 and not 2
elif x%3 == 0:
print('Divisible by 3 and not by 2')
#Else statement that prints if the integer
#returns False on all previous tests
else:
print('Not Divisible by 2 or 3')
```