Try doing your own homework first. If you make an effort, people might be willing to give pointers.

And, unrelated to your question, main() returns int, not void.