- #include"stdio.h"
- #include"math.h"
- void main()
- {
- double y;
- int x,m;
- for(y=1;y>=-1;y-=0.1)
- {
- m=acos(y)*10;
- for(x=1;x<m;x++)
- printf(" ");
- printf("*");
- for(;x<62-m;x++)
- printf(" ");
- printf("*");
- printf("\n");
-
- }
- }
![](https://s1.51cto.com/attachment/201111/103826339.png)
转载于:https://blog.51cto.com/shamrock/711613