How to make LED flashing in different states

I'm really new to the C programming and arduino but willing to learn everything.

OK, go thru all the examples that come with the IDE.
When you understand them, progress to your own projects.