大圆盘减去扇形和小圆盘:

#include <math.h>
#include <stdio.h>
int main() {
double x, y;
for (y = 1; y >= -1; y -= 0.05, putchar('\n'))
for (x = -1; x <= 1; x += 0.025)
putchar(" *"[
x * x + y * y < 1 && /* disk */
fabs(atan2(y, x)) > 0.5 && /* mouth */
x * x + pow(y - 0.5, 2) > 0.02]); /* eye */
}

【C语言】用C语言输出一个吃豆人

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-05-06
  • 2021-08-15
  • 2022-03-01
  • 2021-11-28
  • 2021-12-23
猜你喜欢
  • 2021-11-18
  • 2022-01-12
  • 2021-04-03
  • 2021-12-08
  • 2021-12-19
  • 2021-05-29
相关资源
相似解决方案