当前位置:网站首页>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}"
边栏推荐
- windows设置redis开启自动启动
- KeePass realizes automatic input of web pages
- B_QuRT_User_Guide(36)
- LDO穩壓芯片-內部框圖及選型參數
- The 19th Zhejiang Provincial College Programming Contest VP record + supplementary questions
- 产业共融新势能,城链科技数字峰会厦门站成功举办
- 城联优品作为新力量初注入,相关上市公司股价应声上涨150%
- Unity3d learning notes 4 - create mesh advanced interface
- LDO稳压芯片-内部框图及选型参数
- Windows set redis to start automatically
猜你喜欢

UE4_ Ue5 panoramic camera

SRM supplier cloud collaborative management platform solution for building materials industry to realize business application scalability and configuration

In the field of software engineering, we have been doing scientific research for ten years!

LDO voltage stabilizing chip - internal block diagram and selection parameters

Mysql索引优化实战一

Right click the idea file to create new. There is no solution to create new servlet

Mysql索引优化实战二

B_QuRT_User_Guide(37)

B_ QuRT_ User_ Guide(38)
![Ros2 topic (03): the difference between ros1 and ros2 [01]](/img/20/39d47c93400050a7bc8ad7efea51b3.png)
Ros2 topic (03): the difference between ros1 and ros2 [01]
随机推荐
turbo intruder常用脚本
LM12丨Rolling Heikin Ashi二重K线滤波器
Markdown
Explain
Windows set redis to start automatically
SAP HR 家庭成员信息
CAIP2021 初赛VP
How to generate unique file names
Mysql索引优化实战一
MATLAB signal processing [Q & A essays · 2]
PHP uses Alibaba cloud storage
B_QuRT_User_Guide(37)
SAP HR奖罚信息导出
深入理解Mysql锁与事务隔离级别
B_ QuRT_ User_ Guide(38)
B / Qurt Utilisateur Guide (36)
Coreseek: the second step is index building and testing
Caip2021 preliminary VP
经纬度PLT文件格式说明
SAP HR 劳动合同信息 0016