Create main.c

This is the actual program that the professor has asked for.