fork download
  1. #include <stdio.h>
  2. #include <math.h>
  3. #define pi 3.1416
  4. int main(void) {
  5. double x,y,r,theta,k,f;
  6. int i,n;
  7. n=5;
  8. y=100.0; k=0.2;
  9. for(i=1;i<n;i++)
  10. {
  11. x=i*k; f=1.0/(x*x*y*y+1.0);
  12. printf("\\put(%5.2f, %5.2f){\\circle*\{0.5\}}\n ",20*x+160,30*f+20);
  13. }
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 10304KB
stdin
Standard input is empty
stdout
\put(164.00, 20.07){\circle*{0.5}}
 \put(168.00, 20.02){\circle*{0.5}}
 \put(172.00, 20.01){\circle*{0.5}}
 \put(176.00, 20.00){\circle*{0.5}}