用C#中for循环排列个等腰三角形!!!
展开全部
//哈哈哈,排星号神马的,都已经弱爆了……
Graphics g = e.Graphics;
int height = 100;//高度
Pen p = new Pen(Color.Black, 1);
Point a = new Point(10, 110);
Point b = new Point(a.X + height, a.Y);
Point c = new Point(a.X, a.Y + height);
g.DrawLine(p, a,b);
g.DrawLine(p, a, c);
g.DrawLine(p, b, c);
g.DrawString("这是个等腰三角形", new Font("微软雅黑", 10), Brushes.Blue, new Point(a.X , a.Y-20));
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询