#include <stdio.h>
#include<stdlib.h>
#include<math.h>
int 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("*\n");
}
return 0;
}
标签:main,正弦曲线,上画,int,0.1,printf,屏幕,include From: https://blog.51cto.com/u_16336886/8710871