标签:java for div line word on print class
int
sum =
0
;
for
(
int
i =
10
; i <=
100
; i++)
if
( i %
3
==
0
|| i %
5
==
0
) sum += i;
System.out.println(sum);
求从10到100中能被3或5整除的数的和,布布扣,bubuko.com
标签:java for div line word on print class
原文地址:http://www.cnblogs.com/Smily-C/p/3892785.html