当前位置:网站首页>Shell script multi loop experiment
Shell script multi loop experiment
2022-06-30 09:54:00 【thengsd】
Catalog
One 、99 Multiplication table
#!/bin/bash
for ((a=1;a<=9;a++))
do
for ((b=1;b<= a ; b + + ) ) d o c = a;b++)) do c= a;b++))doc=[ a ∗ a* a∗b]
echo -n -e “ a ∗ a* a∗b=$c\t”
done
echo “”
done

Two 、 rectangular
#!/bin/bash
for ((a=1;a<=5;a++))
do
for ((b=1;b<=10;b++))
do
echo -n “*”
done
echo “”
done
3、 ... and 、 A straight line
#!/bin/bash
for ((a=1;a<=15;a++))
do
echo -n “*”
done
echo “”
Four 、 Right triangle

5、 ... and 、 An inverted right triangle
#!/bin/bash
for ((a=1;a<=9;a++))
do
for ((b=9;b>=$a;b–))
do
echo -n “*”
done
echo “”
done
6、 ... and 、 Isosceles right triangle
#!/bin/bash
for ((a=1;a<=9;a++))
do
for ((b=9;b>=$a;b–))
do
echo -n " "
done
for ((c=1;c<= [ [ [a2-1];c++))
do
echo -n ""
done
echo “”
done
边栏推荐
- How to reduce the delay in live broadcast in the development of live broadcast source code with goods?
- How to build a private cloud and create a hybrid cloud ecosystem?
- utils session&rpc
- 1. Basic configuration
- 3.集成eslint、prettier
- [new book recommendation] cleaning data for effective data science
- 基于Svelte3.x桌面端UI组件库Svelte UI
- Deberta (decoding enhanced Bert with distinguished attention)
- Good partner for cloud skill improvement, senior brother cloud of Amazon officially opened today
- How do databases go to the enterprise cloud? Click to view the answer
猜你喜欢

Pytorch graduate warm LR installation

How to build an all-in-one database cloud machine that meets the needs of information innovation?

JVM garbage collector G1 & ZGC details

Good partner for cloud skill improvement, senior brother cloud of Amazon officially opened today

Oracle cross database replication data table dblink

IDC released the report on China's software defined storage and hyper convergence market in the fourth quarter of 2020, and smartx hyper convergence software ranked first in the financial industry

仿照微信Oauth2.0接入方案

Flutter 中的 ValueNotifier 和 ValueListenableBuilder

Enterprise data center "cloud" transformation solution

Numpy (data type)
随机推荐
[new book recommendation] mongodb performance tuning
How can we have high performance and simple agility in the enterprise cloud on oracle?
9.缓存优化
Initialize static resource demo
utils 协程
prometheus 监控之 ntp_exporter
八大排序(二)
What is the difference between ZigBee, Bluetooth and WiFi (copy and reprint)
qmlplugindump executable not found.It is required to generate the qmltypes file for VTK Qml
直播带货源码开发中,如何降低直播中的延迟?
仿照微信Oauth2.0接入方案
Properties of string
Good partner for cloud skill improvement, senior brother cloud of Amazon officially opened today
Forrester senior analyst: five important trends in the development of the hyper convergence market
Alibaba billion concurrent projects in architecture
1. Basic configuration
[new book recommendation] DeNO web development
MySQL index optimization miscellaneous
Cloud native database
Configuring MySQL for error reporting