Ok, but it's better if you insert a resistor in the schematic.
In order to blink you have to cyclic switch on and switch off (if is a "normal" LED).
The easiest way is using delay() instruction, but it's the worst too.
Futhermore, in your code there is this error: the semicolon end the instruction and the code inside the curly brackets will be always executed.
I just wanted to point out that, even if you edit or delete the post, the history of what you wrote remains and your ways of relating to others are really rude.
I don't know how is the study path for become electrical engineer in your country, but in mine there are ALSO computer and programming exams to pass before becoming a graduate.
So help yourself and get back to studying because your programming mistake is really trivial and typical of true beginners (for which it would be understandable and acceptable).
No one will write the code here for you, especially if you are so disrespectful and snooty!
look, friends, we are here for helping each other, everyone is not intelligent as you. maybe I am a slow learner, but don't dare to judge anyone without knowing their true condition.
I think your university didn't teach you about manners.