Without a specific question, all I can say is look at the order of your cout statements and your header. They don't match. You may want to get rid of the \n in your header too.

Also, your for loop variable should be an int. You can cast it to a double to call the sqrt function.