Write a program in Python to execute the following statements.
1. Accept the length and breadth of a rectangle from the user and calculate its area and perimeter.
2. Accept three numbers from the user and display the largest number.
3. Accept a number from the user and check if it is an odd or even number.