当前位置:网站首页>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}"
边栏推荐
- Turbo introder common scripts
- 给出一个数组,如 [7864, 284, 347, 7732, 8498],现在需要将数组中的数字拼接起来,返回「最大的可能拼出的数字」
- Force deduction solution summary 648 word replacement
- 电子设备行业智能供应链协同平台解决方案:解决低效, 赋能产业数字化升级
- CAIP2021 初赛VP
- Happy gathering time
- Explain
- SAP HR奖罚信息导出
- Summary of SQL single table query 2020.7.27
- 648. Word replacement
猜你喜欢

PCI-Express接口的PCB布线规则

Digital procurement management system for fresh food industry: help fresh food enterprises solve procurement problems and implement online procurement throughout the process
![[stm32+esp8266 connects to Tencent cloud IOT development platform 3] stm32+esp8266-01s dynamically registers devices on Tencent cloud (at instruction mode) -- with source code](/img/55/ab50ead2564498cb214d98ac5b9c3d.jpg)
[stm32+esp8266 connects to Tencent cloud IOT development platform 3] stm32+esp8266-01s dynamically registers devices on Tencent cloud (at instruction mode) -- with source code

城联优品作为新力量初注入,相关上市公司股价应声上涨150%

Installing spss25

包装行业智能供应链S2B2B商城解决方案:开辟电商消费新生态

Understand TCP's three handshakes and four waves with love

ESP at installation esp8266 and esp32 versions

KeePass realizes automatic input of web pages

ROS2专题(03):ROS1和ROS2的区别【02】
随机推荐
ROS2专题(03):ROS1和ROS2的区别【02】
2022 certified surveyors are still at a loss when preparing for the exam? Teach you how to take the exam hand in hand?
LeeCode -- 6. Z 字形变换
re1攻防世界逆向
Mysql索引优化实战一
Vs extension tool notes
云原生正在吞噬一切,开发者该如何应对?
PCI-Express接口的PCB布线规则
ROS2专题(03):ROS1和ROS2的区别【01】
Spark 离线开发框架设计与实现
B_ QuRT_ User_ Guide(40)
SQL database execution problems
2022 Season 6 perfect children's model Shaanxi finals came to a successful conclusion
移动端异构运算技术 - GPU OpenCL 编程(基础篇)
在软件工程领域,搞科研的这十年!
2022第六季完美童模陕西总决赛圆满落幕
js 获取对象的key和value
ESP at installation esp8266 and esp32 versions
Summary of common methods of object class (September 14, 2020)
Oracle database backup and recovery