title: How to printf long long
body: <p>I'm doing a program that aproximate PI and i'm trying to use long long, but it isn't working.
  Here is the code</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;math.h&gt;
  typedef long long num;
  main(){
      num pi;
      pi=0;
      num e, n;
      scanf("%d", &amp;n);
      for(e=0; 1;e++){
        pi += ((pow((-1.0),e))/(2.0*e+1.0));
        if(e%n==0)
          printf("%15lld -&gt; %1.16lld\n",e, 4*pi);
        //printf("%lld\n",4*pi);
      }
  }
  </code></pre>