当前位置:网站首页>Print the star chart "Recommended Collection"
Print the star chart "Recommended Collection"
2022-08-09 18:26:00 【Full stack programmer webmaster】
Hello everyone, meet again, I'm your friend Quanstack Jun.
package algorithm;
public class print star graph { public static void main(String[] args) { for(int i=1;i<4;i++){ for(int j=0;j<(i-1)*2+1;j++){ System.out.print(“*”); } System.out.println(); } for(int i=3;i>0;i–){ for(int j=(i-1)*2+1;j>0;j–){ System.out.print(“*”); } System.out.println(); } }
}
Publisher: Full-stack programmer, please indicate the source: https://javaforall.cn/106029.htmlOriginal link: https://javaforall.cn
边栏推荐
- The Chinese Academy of Sciences slaps Google in the face: ordinary computers catch up with quantum superiority, and can solve calculations that would have taken 10,000 years in a few hours...
- 开始记录自己的学习过程和目标
- C语言小游戏—扫雷
- 【挨踢(IT)初体验】
- 微信开发者工具报错,提示 未找到入口 app.json 文件
- 网络——IPv6 vs IPv4
- ESP8266-Arduino编程实例-MQ-4气体传感器驱动
- 2.1、基于并行上下文注意网络的场景文本图像超分辨率
- 现在,怎么挑选舞台租赁LED显示屏?
- dichotomy
猜你喜欢
Using Prometheus skillfully to extend the kubernetes scheduler
网络——数据交换方式
网络——2021年大题解析
Heap series_0x09: Example of heap corruption (illegal access + uninitialized + heap handle mismatch)
2022年8月9日:用C#生成.NET应用程序--使用 Visual Studio Code 调试器,以交互方式调试 .NET 应用(不会,失败)
2.1、基于并行上下文注意网络的场景文本图像超分辨率
自定义过滤器和拦截器实现ThreadLocal线程封闭
Qt学习第二天
三.两数交换 空指针 && 野指针 解引用问题
Swagger2 knife4j NullPointerException 空指针问题
随机推荐
Video chat source code - how to improve the quality of one-to-one live broadcast?
No need to pay for the 688 Apple developer account, xcode13 packaged and exported ipa, and provided others for internal testing
网络——TCP拥塞控制
uniapp project construction
第一篇博客
2022年中国第三方证券APP创新专题分析
5. Visualizing Geospatial Data
map和set容器
初识C语言(1)
IDEA中操作数据库 以MySQL为例,可以放弃Navicat了
中科院打脸谷歌:普通电脑追上量子优越性,几小时搞定原本要一万年的计算...
Base64工具类
网络——数字数据编码
C语言小游戏—扫雷
一.字符 字符串 指针字符
Heap series_0x09: Example of heap corruption (illegal access + uninitialized + heap handle mismatch)
易基因|作物育种:DNA甲基化在大豆优良品种培育中的作用研究成果
Redis Cache Expiration and Retirement Policy
【1413. 逐步求和得到正数的最小值】
零基础爬虫regex练习「音乐抓取」