摘要:
/* 1.计算0-100内偶数的和 2.计算0-1000内个位数为3的所有数字之和 3.计算10! */ public static void main(String[] args) { one();//计算0-100内偶数的和 two();//计算0-1000内个位数为3的所有数字之和 three 阅读全文
posted @ 2022-03-21 21:40
涐啝雨の約定
阅读(25)
评论(0)
推荐(0)
摘要:
public static void main(String[] args) { //1.计算0-100的和? /* 分析:循环条件 i 0~100 循环体:累加 */ int i = 0;//循环变量 int sum = 0;//最终的结果值 //循环:while while (i <= 100) 阅读全文
posted @ 2022-03-21 21:39
涐啝雨の約定
阅读(37)
评论(0)
推荐(0)
摘要:
/** * 字符串连接符:字符串和字符串拼接 字符串和其他类型拼接 * //问:当多个类型参与的运算,+是运算?还是拼接? */ public static void main(String[] args) { //1.字符串类型:String String s = "可以任意写,写什么都是对的"; 阅读全文
posted @ 2022-03-21 21:38
涐啝雨の約定
阅读(36)
评论(0)
推荐(0)

浙公网安备 33010602011771号