當前位置:編程學習大全網 - 電腦編程 - 假設n=編程。

假設n=編程。

# include & ltstdio.h & gt# include & ltmath.h & gt# define N 10 # define PI 3.1415 int main(){ double x;int i,j;int y;int p =(int)N * PI;for(I = 0;我& lt= 2 * N;i++){ y = p-(int)((asin(1-I/(double)N))* N);如果(我& ltn){ for(j = 1;j & ltp-y;j++)printf(" ");printf(" * ");for(;j & lt= y;j++)printf(" ");printf(" * \ n ");} else if(I & gt;n){ for(j = 0;j & lty;j++)printf(" ");printf(" * ");for(;j & lt= 3 * p-y;j++)printf(" ");printf(" * \ n ");} }返回0;}
  • 上一篇:壹個直徑20的孔,要在5毫米深處銑壹個直徑25深3毫米的圓槽,用980MDA或者其他系統怎麽編程序。
  • 下一篇:哪裏可以兌換王者榮耀兌換碼?
  • copyright 2024編程學習大全網