Changed code for readability and wrote a program to display pi at a certain decimal point.