Sorry i didnt get you..
The code you posted above contains smileys and italics, because the forum has translated your text, like [i], into tags.
If you post your code between Paste your code here tags, people will be able to read your code as it is intended.
If you go back to the post, click on "modify", highlight the code, then click on the # icon on the toolbar, then click on "save", all should be well.
for(i=0;i<=10;i++)
Your array has ten elements, not eleven.
double Vp = (3*10^8);
I'm not sure of the relative precedences of the multiplication and XOR operators, but I suspect you mean
double Vp = (3*10E8);