当前位置:网站首页>The for loop realizes 1-100 addition and eliminates the 4-digit tail number
The for loop realizes 1-100 addition and eliminates the 4-digit tail number
2022-07-07 23:33:00 【Bobo in summer】
#!/bin/bash
i_End=4
i_Total=0
for((i=1;i<=100;i++))
do
i_temp=`expr $i % 10`
if [ $i_temp -eq $i_End ];
then
echo " skip :${i}"
continue;
fi
i_Total=$((${
i_Total}+i))
done
echo "Total=${i_Total}"
边栏推荐
- 2021icpc Shanghai h.life is a game Kruskal reconstruction tree
- [STM32 + esp-12s connect Tencent cloud IOT development platform 1] creation of cloud platform and burning of at firmware
- Progress broadcast | all 29 shield machines of Guangzhou Metro Line 7 have been launched
- ROS2专题(03):ROS1和ROS2的区别【01】
- One week learning summary of STL Standard Template Library
- 系统设计概述
- UE4_ Use of ue5 blueprint command node (turn on / off screen response log publish full screen display)
- Three questions TDM
- Ros2 topic (03): the difference between ros1 and ros2 [01]
- Oracle database backup and recovery
猜你喜欢
Design and implementation of spark offline development framework
家用电器行业渠道商协同系统解决方案:助力家电企业快速实现渠道互联网化
高效的S2B2C电商系统,是这样帮助电子材料企业提升应变能力的
Right click the idea file to create new. There is no solution to create new servlet
LM12丨Rolling Heikin Ashi二重K线滤波器
2022 certified surveyors are still at a loss when preparing for the exam? Teach you how to take the exam hand in hand?
B_ QuRT_ User_ Guide(36)
SRM supplier cloud collaborative management platform solution for building materials industry to realize business application scalability and configuration
2022第六季完美童模陕西总决赛圆满落幕
Vulnerability recurrence ----- 49. Apache airflow authentication bypass (cve-2020-17526)
随机推荐
First week of July
移动端异构运算技术 - GPU OpenCL 编程(基础篇)
1. Sum of two numbers
Deep understanding of MySQL lock and transaction isolation level
[stm32+esp8266 connect Tencent cloud IOT development platform 2] stm32+esp8266-01s connect Tencent cloud
UE4_ Ue5 combined with Logitech handle (F710) use record
js 获取对象的key和value
USB (XVII) 2022-04-15
Progress broadcast | all 29 shield machines of Guangzhou Metro Line 7 have been launched
FPGA basics catalog
VS扩展工具笔记
Lm12 rolling heikin Ashi double K-line filter
云原生正在吞噬一切,开发者该如何应对?
Summary of common methods of object class (September 14, 2020)
Windows set redis to start automatically
做自媒体视频剪辑怎么赚钱呢?
2022 Season 6 perfect children's model Shaanxi finals came to a successful conclusion
Design and implementation of spark offline development framework
三问TDM
Live server usage