Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Integer-comparison/Raku/integer-comparison-1.raku
Normal file
12
Task/Integer-comparison/Raku/integer-comparison-1.raku
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
my $a = prompt("1st int: ").floor;
|
||||
my $b = prompt("2nd int: ").floor;
|
||||
|
||||
if $a < $b {
|
||||
say 'Less';
|
||||
}
|
||||
elsif $a > $b {
|
||||
say 'Greater';
|
||||
}
|
||||
elsif $a == $b {
|
||||
say 'Equal';
|
||||
}
|
||||
1
Task/Integer-comparison/Raku/integer-comparison-2.raku
Normal file
1
Task/Integer-comparison/Raku/integer-comparison-2.raku
Normal file
|
|
@ -0,0 +1 @@
|
|||
say <Less Equal Greater>[($a <=> $b) + 1];
|
||||
1
Task/Integer-comparison/Raku/integer-comparison-3.raku
Normal file
1
Task/Integer-comparison/Raku/integer-comparison-3.raku
Normal file
|
|
@ -0,0 +1 @@
|
|||
say prompt("1st int: ") <=> prompt("2nd int: ");
|
||||
Loading…
Add table
Add a link
Reference in a new issue