about summary refs log tree commit diff
path: root/usth/ICT2.2/labwork/1/FivePerLine.java
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);
  }
}