没有合适的资源?快使用搜索试试~ 我知道了~
数据库技术
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![exe](https://img-home.csdnimg.cn/images/20210720083343.png)
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![tar](https://img-home.csdnimg.cn/images/20210720083646.png)
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![tbx](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![1下载地址](https://img-home.csdnimg.cn/images/20210720083646.png)
![lic](https://img-home.csdnimg.cn/images/20210720083646.png)
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rpm](https://img-home.csdnimg.cn/images/20210720083646.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.Write("请输入行数:");
int row = int.Parse(Console.ReadLine());
for (int i = 1; i <= row; i++)
{
//获取空格数目
int space = row - i;
//获取*的数目
int star = 2 * i - 1;
//输出空格
for (int j = 0; j < space; j++)
{
Console.Write(" ");
}
//输出*
for (int j = 0; j < star; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
Console.ReadLine();
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.Write("请输入行数:");
int row = int.Parse(Console.ReadLine());
for (int i = 1; i <= row; i++)
{
//获取空格数目
int space = row - i;
//获取*的数目
int star = 2 * i - 1;
//输出空格
for (int j = 0; j < space; j++)
{
Console.Write(" ");
}
//输出*
for (int j = 0; j < star; j++)
{
Console.Write("*");
}
Console.WriteLine();
}
Console.ReadLine();
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
- jianggc232013-03-04内容比较适合的!
- jianggc222013-03-03感谢楼主,学到不少,谢谢!
![avatar](https://profile-avatar.csdnimg.cn/c69212996a8d465797a62cbd2f3b6c23_wang3223392.jpg!1)
Adam_Coder
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)