blob: 339e6cf2e06f0bd6977b2d2fd18cc3764fdab3c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
class FivePerLine
{
public static void main(String... args)
{
for (int i = 1000; i < 2000; ++i)
if (i % 5 < 4)
System.out.print(i + " ");
else
System.out.println(i);
}
}
|