Good work
But, please always post code within [code].....[/code]

And, as you have not mentioned the return type of main(), it's int by default; so remember to add return 0; at the end.