Sha256: cd4e2c7e4e9c4f13cfc52a540658e532dd7d9d252c3c34a9a7b059e9776059da

Contents?: true

Size: 676 Bytes

Versions: 396

Compression:

Stored size: 676 Bytes

Contents

create or replace package raindrops#
is
  function convert (
    i_num                                         pls_integer
  ) return varchar2;
end raindrops#;
/
 
create or replace package body raindrops#
is
  function convert (
    i_num                                         pls_integer
  ) return varchar2
  is
    l_sound                                       varchar2(15) := '';
  begin
    if mod(i_num, 3) = 0 then l_sound := l_sound || 'Pling'; end if;
    if mod(i_num, 5) = 0 then l_sound := l_sound || 'Plang'; end if;
    if mod(i_num, 7) = 0 then l_sound := l_sound || 'Plong'; end if;
    return nvl(l_sound, to_char(i_num));
  end convert;
end raindrops#;
/

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.118 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.117 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.116 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.115 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.114 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.113 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.111 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.110 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.109 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.108 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.107 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.106 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.105 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.104 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.103 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.102 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.101 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.100 tracks/plsql/exercises/raindrops/example.plsql
trackler-2.2.1.99 tracks/plsql/exercises/raindrops/example.plsql