How to print variable column wise for different constant value of independent variable? I am printing the temperature as a function of different velocity. See the figure which shows the format. I want to print all these data into a single file generated by C program.