Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
10
Task/Integer-comparison/Julia/integer-comparison.julia
Normal file
10
Task/Integer-comparison/Julia/integer-comparison.julia
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
function compare()
|
||||
int1 = chomp(readline(STDIN))
|
||||
int2 = chomp(readline(STDIN))
|
||||
print(int1, " is ",
|
||||
int1 < int2 ? "less than " :
|
||||
int1 == int2 ? "equal to " :
|
||||
int1 > int2 ? "greater than " :
|
||||
"uncomparable to",
|
||||
int2)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue