Sha256: 77ff87bd68b3dbe31a7e070110f16df31f36d91287009e16219c7ae9b9df3513

Contents?: true

Size: 490 Bytes

Versions: 283

Compression:

Stored size: 490 Bytes

Contents

unit uRaindrops;

interface

type

  Raindrops = class
    class function Convert(aNumber: integer): string; static;
  end;

implementation
uses System.SysUtils;

class function Raindrops.Convert(aNumber: integer): string;
begin
  result := '';
  if aNumber mod 3 = 0 then
    result := result + 'Pling';
  if aNumber mod 5 = 0 then
    result := result + 'Plang';
  if aNumber mod 7 = 0 then
    result := result + 'Plong';
  if result = '' then
    result := aNumber.ToString;
end;

end.

Version data entries

283 entries across 283 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.179 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.178 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.177 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.176 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.175 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.174 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.173 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.172 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.171 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.170 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.169 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.167 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.166 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.165 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.164 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.163 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.162 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.161 tracks/delphi/exercises/raindrops/uRaindropsExample.pas
trackler-2.2.1.160 tracks/delphi/exercises/raindrops/uRaindropsExample.pas