"%f \t%f\n" says print a space, the first value, a space, then a tab, then the second value, then a newline.
You need to put a newline in between the first and second rather than a tab.
I need the first x,y value in first line and the next set of x,y values in next line with a space(tab) between them.
The '\n' that I have given is getting printed as a small rectangular box in the o\p text file rather than making the next pair to go to the new line.
The o\p should be something like this;
and so on.