当前位置:网站首页>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
边栏推荐
- MySQL index optimization miscellaneous
- 将小程序容器技术应用到物联网IoT生态建设中
- Initialize static resource demo
- Difference between bow and cbow
- Idea setting automatic package Guide
- Read the difference and connection between hyperfusion and private cloud
- Flume learning II - Cases
- 7.手机登陆功能开发
- Framework program of browser self-service terminal based on IE kernel
- Galaxy Kirin server-v10 configuration image source
猜你喜欢

How to build a private cloud and create a hybrid cloud ecosystem?

Flutter 中的 ValueNotifier 和 ValueListenableBuilder

Cb/s Architecture - Implementation Based on cef3+mfc

prometheus 监控之 ntp_exporter

Techtarget: Interpretation of the basic concept of super fusion cloud

Valuenotifier and valuelistenablebuilder in fluent

Good partner for cloud skill improvement, senior brother cloud of Amazon officially opened today
![Train an image classifier demo in pytorch [learning notes]](/img/a5/fc14ee9dda1ec3e17b0ae2bda84d86.png)
Train an image classifier demo in pytorch [learning notes]

【新书推荐】Deno Web Development

目标检测yolov5开源项目调试
随机推荐
Financial private cloud infrastructure scheme evaluation (Architecture and storage)
Numpy (data type)
Golang magic code
安装和使用
Returnjson, which allows more custom data or class names to be returned
Numpy (time date and time increment)
Enum demo
Oracle cross database replication data table dblink
Clickhouse installation (quick start)
Good partner for cloud skill improvement, senior brother cloud of Amazon officially opened today
Mysql database learning 1
Add / delete query of topic
Hospital integration platform super fusion infrastructure transformation scheme
小程序开发踩坑之旅
训练一个图像分类器demo in PyTorch【学习笔记】
关于字符串的split和join操作
Datatabletomodellist entity class
MCU firmware packaging Script Software
Based on svelte3 X desktop UI component library svelte UI
Design of mfc+mysql document data management system based on VS2010