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
18
Task/Create-an-HTML-table/Ursa/create-an-html-table.ursa
Normal file
18
Task/Create-an-HTML-table/Ursa/create-an-html-table.ursa
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
decl ursa.util.random random
|
||||
|
||||
out "<table>" endl console
|
||||
|
||||
# generate header
|
||||
out "<tr><th></th><th>X</th><th>Y</th><th>Z</th></tr>" endl console
|
||||
|
||||
# generate five rows
|
||||
decl int i
|
||||
for (set i 1) (< i 6) (inc i)
|
||||
out "<tr><td style=\"font-weight: bold;\">" i "</td>" console
|
||||
out "<td>" (int (+ 1000 (random.getint 8999))) "</td>" console
|
||||
out "<td>" (int (+ 1000 (random.getint 8999))) "</td>" console
|
||||
out "<td>" (int (+ 1000 (random.getint 8999))) "</td>" console
|
||||
out "</tr>" endl console
|
||||
end for
|
||||
|
||||
out "</table>" endl console
|
||||
Loading…
Add table
Add a link
Reference in a new issue