当前位置:网站首页>求1~100之间不能被3整除的数之和
求1~100之间不能被3整除的数之和
2022-07-23 05:42: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之间不能被3整除的数之和是:"+sum);
}边栏推荐
猜你喜欢

NFT digital collection development: Jingdong "Qida bear takes you to the capital" tourism package
![[metric] use Prometheus to monitor flink1.13org.apache.flink.metrics](/img/9a/f6ef8de9943ec8e716388ae6620600.png)
[metric] use Prometheus to monitor flink1.13org.apache.flink.metrics
![[literature research] search PubMed for papers in journals with specific impact factors](/img/5e/ea762830e73eee2700402d70ba5c43.png)
[literature research] search PubMed for papers in journals with specific impact factors

Data warehouse 4.0 notes - user behavior data collection III

Develop necessary idea use

九、实用类

Quartz2.2 simple scheduling job

数仓4.0笔记——数仓建模

mysql免密登录设置

Using cluster analysis to build a credit card high-risk customer identification model
随机推荐
2、MySQL数据管理--DML(添加、修改、删除数据)
3. DQL (data query statement)
Method of recognizing b value from DICOM tag in DWI image
IP地址是什么
Review of knowledge points
二叉树
Develop necessary idea use
APP自动化测试工具-appium的安装及使用
Kubesphere ha install (II)
One of scala variables and data types
NFT digital collection system development, development trend of Digital Collections
Development of digital collection system: Baidu AI pays tribute to Air China
[untitled]
ES操作命令
10. I/o input / output stream
数仓4.0笔记——用户行为数据采集三
Data warehouse 4.0 notes - business data collection
MySQL事务
数仓4.0笔记——用户行为数据采集四
P5 interview questions