使用c++绘制同心圆

#include

#include <graphics.h>

const float pi = 3.14159265;

const int ARRAY_LEN = 50; //数组长度为50

int main()

{

//定义变量

double x[ARRAY_LEN] = {0};

double y[ARRAY_LEN] = {0};

int i = 0,j = 0;//循环变量

int n = 0;//小圆的个数

double r1 = 160,r2 = 120;//同心圆外圆和内圆的半径

//请将你的代码写在这里

//1)输入小圆的个数

//2)生成同心圆

//3)生成n个颜色可变的小圆

return 0;

}

img

img

img