Do yourself and us a favour: indent your code.
It is a lot easier to read, understasnd and debug if it looks like this:
float eucl[20];
fseek(fp, 0, SEEK_SET);
for(int p=0;p<n;p++)
fscanf(fp,"\n%f",&eucl[p]);
cout<<"\n";
for(int f=0;f<n;f++)
for(int k=0;k<n;k++)
{
temp=eucl[f]-eucl[k];
cout<<"\nEucledian Distance of "<<eucl[f]<<" with respect to "<<eucl[k]<<" is "<<temp;
}
fclose(fp);
getch();
I would also strongly recommend meaningful names for all variables, an increas in commens, and the use of '{' and '}' at all times when you are beginning. I.e. even if you have a single line of code in a for loop, use brackets: That way if you need to add another, it is obvious that it is or isn't in the loop.
Use the "Improve question" widget to edit your question.