怎么用c语言编写软件(绘制正弦函数)

2024-11-24 14:52:19
推荐回答(1个)
回答1:

#include
#include
main()
{
double y;
int x,m;
for(y=1;y>=-1.0;y-=0.1)
{
m=acos(y)*10;
for(x=1;x printf(" ");
printf("*");
for(;x<62-m;x++)
printf(" ");
printf("*\n");
}
}