Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
10
Task/Integer-comparison/Nim/integer-comparison.nim
Normal file
10
Task/Integer-comparison/Nim/integer-comparison.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import rdstdin, strutils
|
||||
var a = parseInt(readLineFromStdin "Enter value of a: ")
|
||||
var b = parseInt(readLineFromStdin "Enter value of b: ")
|
||||
|
||||
if a < b:
|
||||
echo "a is less than b"
|
||||
elif a > b:
|
||||
echo "a is greater than b"
|
||||
elif a == b:
|
||||
echo "a is equal to b"
|
||||
Loading…
Add table
Add a link
Reference in a new issue