Program to read TIFF files and output them to another format

Does anyone have a program that will read TIFF files and output them to
another graphics format, such as PCX, or BMP, or something else?  I am
trying to learn how this would be done, so it would be helpful, but not
completely necessary, if the program was well-commented.

Thanks in advance (hopefully),

Brian Davis