当前位置:网站首页>Find the sum of numbers between 1 and 100 that cannot be divided by 3
Find the sum of numbers between 1 and 100 that cannot be divided by 3
2022-07-23 11:57:00 【shuo277】
public static void main(String[] args) {
int sum=0;
for (int i=0; i<=100;i++){
if(i%3!=0){
sum +=i;
}
}
System.out.println("1~100 Can't be 3 The sum of divisible numbers is :"+sum);
}边栏推荐
- Stage 1 Review
- Scala II process control
- Installation and process creation of activiti app used by activiti workflow
- Development of digital collection system / introduction of digital collection scheme
- Data warehouse 4.0 notes - user behavior data generation
- UE4解决WebBrowser无法播放H.264的问题
- 3. DQL (data query statement)
- 数仓4.0笔记——用户行为数据采集二
- Data warehouse 4.0 notes - Data Warehouse Modeling
- 如何进行强制类型转换?
猜你喜欢

Development of digital collection system / introduction of digital collection scheme

对.h5文件的迭代显示,h5py数据操作

Customized development of ant chain NFT digital collection DAPP mall system

数仓4.0笔记——用户行为数据采集一

Mosaic the face part of the picture

Develop necessary idea use

如何进行强制类型转换?

Data warehouse 4.0 notes - data warehouse environment construction - Yan configuration

UItextview的textViewDidChange的使用技巧
![[metric] use Prometheus to monitor flink1.13org.apache.flink.metrics](/img/9a/f6ef8de9943ec8e716388ae6620600.png)
[metric] use Prometheus to monitor flink1.13org.apache.flink.metrics
随机推荐
Accumulate SQL by date
Review of knowledge points
Kubesphere haproxy+kept (I)
1. Know the database
链栈
MySQL数据库
What is the IP address
[untitled]
[radiology] bugfix: when GLCM features: indexerror: arrays used as indexes must be of integer (or Boolean) type
MySQL事务
Using cluster analysis to build a credit card high-risk customer identification model
Activiti7 Quick Start experience sharing
Mysqldump batch export MySQL table creation statement
Implementation of neural network for face recognition
强迫症的硬盘分区
第一阶段复习
Machine learning algorithm for large factory interview (5) recommendation system algorithm
MySQL transaction
3.1. Simplified supplement to DQL
Digital collection development / digital collection system development solution