当前位置:网站首页>Character pyramid
Character pyramid
2022-07-03 08:50:00 【Cap07】
#include<iostream>
#include<string>
using namespace std;
int main() { //1 3 5 7 2n-1
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= 2 * n - 1; j++) {
if (j <= n - i || j > n-1+i)
cout << " ";
else
cout << (char)(i + 64);
}
cout<<""<< endl;
}
return 0;
}
//00100
//02220
//33333test result :

边栏推荐
- Alibaba canal actual combat
- Explain sizeof, strlen, pointer, array and other combination questions in detail
- Gif remove blank frame frame number adjustment
- too many open files解决方案
- Analysis of Alibaba canal principle
- [concurrent programming] consistency hash
- TP5 order multi condition sort
- Osganimation library parsing
- 22-06-27 西安 redis(01) 安装redis、redis5种常见数据类型的命令
- 请求参数的发送和接收
猜你喜欢
![[set theory] order relation (total order relation | total order set | total order relation example | quasi order relation | quasi order relation theorem | bifurcation | quasi linear order relation | q](/img/76/6561a78b7f883a0e75a53e037153c3.jpg)
[set theory] order relation (total order relation | total order set | total order relation example | quasi order relation | quasi order relation theorem | bifurcation | quasi linear order relation | q

Graphics_ Games101/202 learning notes

Sending and receiving of request parameters

Animation_ IK overview

DOM 渲染系统(render mount patch)响应式系统

VIM learning notes from introduction to silk skating

100 GIS practical application cases (78) - Multi compliance database design and data warehousing

Gif remove blank frame frame number adjustment

Chocolate installation

22-06-28 西安 redis(02) 持久化机制、入门使用、事务控制、主从复制机制
随机推荐
[rust notes] 09- special types and generics
Monotonic stack -42 Connect rainwater
I made mistakes that junior programmers all over the world would make, and I also made mistakes that I shouldn't have made
file_ put_ contents
Unity learning notes
【Rust 笔记】11-实用特型
Redux - learning notes
[concurrent programming] explicit lock and AQS
ES6 promise learning notes
MySQL three logs
PHP function date (), y-m-d h:i:s in English case
【Rust笔记】05-错误处理
单调栈-84. 柱状图中最大的矩形
Unity interactive water ripple post-treatment
Eating fruit
Thymeleaf 404 reports an error: there was unexpected error (type=not found, status=404)
The method for win10 system to enter the control panel is as follows:
Cesium for unreal quick start - simple scenario configuration
Baidu editor ueeditor changes style
[concurrent programming] collaboration between threads