一品网
  • 首页

while and do while


package study5ran2yl.study;

public class deno14 {
    public static void main(String[] args) {
        //计算1+2+...+100
        int x = 1;
        int sum = 0;
        while(x<=100)
        {

            sum+=x;
            x++;
        }
        System.out.println(sum);
    }
}
学习

相关


Git--学习笔记(三)远程仓库克隆到本地

学习《Python编程从入门到实践》PDF+代码训练

学习使用stat命令

springboot学习之路31(整合minio服务)

[学习笔记] 整数规划之割平面法 How and why?

计网学习笔记(5) - 物理层与媒介

【Mysql学习】django.db.utils.OperationalError: (1045:Access denied for user 'roo

Salesforce LWC学习(九) Quick Action in LWC

【C#进阶系列】30 学习总结

双一流博士整理的计算机视觉学习路线(深度学习+传统图像处理)

[ML]机器学习中我未见过的概念

XML学习(一)

标签

一品网 冀ICP备14022925号-6