aboutsummaryrefslogtreecommitdiff
path: root/challenge-001/paulo-custodio/basic
diff options
context:
space:
mode:
authorPaulo Custodio <pauloscustodio@gmail.com>2021-07-06 21:42:21 +0100
committerPaulo Custodio <pauloscustodio@gmail.com>2021-07-06 21:42:21 +0100
commit7e18a5b7b098b8448f40e2694a60bfbda53cfd3b (patch)
treee1779aaddf5b046e0381a30063e73309209480cd /challenge-001/paulo-custodio/basic
parent5aca4db735e55e7b8cfb535a0edc2b9874e368c0 (diff)
downloadperlweeklychallenge-club-7e18a5b7b098b8448f40e2694a60bfbda53cfd3b.tar.gz
perlweeklychallenge-club-7e18a5b7b098b8448f40e2694a60bfbda53cfd3b.tar.bz2
perlweeklychallenge-club-7e18a5b7b098b8448f40e2694a60bfbda53cfd3b.zip
Remove unnecessary trim(str(n))
Diffstat (limited to 'challenge-001/paulo-custodio/basic')
-rw-r--r--challenge-001/paulo-custodio/basic/ch-1.bas2
-rw-r--r--challenge-001/paulo-custodio/basic/ch-2.bas2
2 files changed, 2 insertions, 2 deletions
diff --git a/challenge-001/paulo-custodio/basic/ch-1.bas b/challenge-001/paulo-custodio/basic/ch-1.bas
index e0411bbbc0..83ce3236c3 100644
--- a/challenge-001/paulo-custodio/basic/ch-1.bas
+++ b/challenge-001/paulo-custodio/basic/ch-1.bas
@@ -30,4 +30,4 @@ end function
dim text as string
text = join_args()
-print trim(str(replace_e(text)));" ";text
+print replace_e(text);" ";text
diff --git a/challenge-001/paulo-custodio/basic/ch-2.bas b/challenge-001/paulo-custodio/basic/ch-2.bas
index fa98c88d09..52bec3c42a 100644
--- a/challenge-001/paulo-custodio/basic/ch-2.bas
+++ b/challenge-001/paulo-custodio/basic/ch-2.bas
@@ -16,6 +16,6 @@ for i=1 to val(command(1))
elseif i mod 5=0 then
print "buzz"
else
- print trim(str(i))
+ print i
end if
next i