i have written a C programme which prints itself n times, but i can't get how to reverse print the same n times.E.g, if the sample programme is :
hello
then the required output should be "olleh" for n=1.
Here's my quine programme, 
#include <stdio.h>
int main()
{
  int n;
  char c;
  FILE *f;
  f=fopen(__FILE__,"r");
  scanf("%d",&n);
 while(n--)
 {
 while((c=getc(f))!=EOF)
 putchar(c);
 fseek(f,0,0);
 }
  return 0;
}