Data update
This commit is contained in:
parent
0df55f9f24
commit
aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions
17
Task/Harmonic-series/EasyLang/harmonic-series.easy
Normal file
17
Task/Harmonic-series/EasyLang/harmonic-series.easy
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
numfmt 5 2
|
||||
print "The first twenty harmonic numbers are:"
|
||||
for n = 1 to 20
|
||||
h += 1 / n
|
||||
print n & " " & h
|
||||
.
|
||||
print ""
|
||||
print "The first harmonic number greater than: "
|
||||
h = 1
|
||||
n = 2
|
||||
for i = 2 to 10
|
||||
while h < i
|
||||
h += 1 / n
|
||||
n += 1
|
||||
.
|
||||
print i & " is " & h & ", at position " & n - 1
|
||||
.
|
||||
Loading…
Add table
Add a link
Reference in a new issue