Révision 246
Pi/C/Simple/Pi_Simple.c (revision 246) | ||
---|---|---|
159 | 159 |
|
160 | 160 |
double itops=(double)(iterations)/elapsed; |
161 | 161 |
|
162 |
printf("Inside/Total %ld %ld\nElapsed Time %.2f\nItops %.0f\nPi estimation %f\n\n",inside,iterations,elapsed,itops,(4.*(float)inside/(float)(iterations)));
|
|
162 |
printf("Inside/Total %lld %lld\nElapsed Time %.2f\nItops %.0f\nPi estimation %f\n\n",inside,iterations,elapsed,itops,(4.*(float)inside/(float)(iterations)));
|
|
163 | 163 |
|
164 | 164 |
printf("\n\n"); |
165 | 165 |
|
Formats disponibles : Unified diff