Write formatted output directly to file Write a program that format the given numbers (integers and doubles) and output them to a file.