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/Arithmetic-Complex/Nim/arithmetic-complex.nim
Normal file
10
Task/Arithmetic-Complex/Nim/arithmetic-complex.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import complex
|
||||
var a: TComplex = (1.0,1.0)
|
||||
var b: TComplex = (3.1415,1.2)
|
||||
|
||||
echo ("a : " & $a)
|
||||
echo ("b : " & $b)
|
||||
echo ("a + b: " & $(a + b))
|
||||
echo ("a * b: " & $(a * b))
|
||||
echo ("1/a : " & $(1/a))
|
||||
echo ("-a : " & $(-a))
|
||||
Loading…
Add table
Add a link
Reference in a new issue