输出c字母图形

 1 #include "stdio.h"
 2 #include "math.h"
 3 int main(void)
 4 {
 5     double y;
 6     int x,m;
 7     for(y=10;y>=-10;y--)
 8     {
 9         m=2.5*sqrt(100-y*y);
10         for(x=1;x<30-m;x++)
11         printf(" ");
12         printf("*\n");
13     }
14     return 0;
15 }

 

posted @ 2020-09-24 13:35  然终酒肆  阅读(260)  评论(0)    收藏  举报