Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
33
Task/Create-an-HTML-table/Objeck/create-an-html-table.objeck
Normal file
33
Task/Create-an-HTML-table/Objeck/create-an-html-table.objeck
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
class CreateTable {
|
||||
function : Main(args : String[]) ~ Nil {
|
||||
s := String->New();
|
||||
|
||||
s->Append("<table>");
|
||||
s->Append("<thead align = \"right\">");
|
||||
s->Append("<tr><th></th>");
|
||||
td := "XYZ";
|
||||
for(i:=0; i<3; i+=1;) {
|
||||
s->Append("<td>");
|
||||
s->Append(td->Get(i));
|
||||
s->Append("</td>");
|
||||
};
|
||||
s->Append("</tr>");
|
||||
s->Append("</thead>");
|
||||
s->Append("<tbody align = \"right\">");
|
||||
for(i:=0; i<3; i+=1;) {
|
||||
s->Append("<tr><td>");
|
||||
s->Append(i);
|
||||
s->Append("</td>");
|
||||
for(j:=0; j<3; j+=1;) {
|
||||
s->Append("<td>");
|
||||
s->Append((Float->Random() * 10000)->As(Int));
|
||||
s->Append("</td>");
|
||||
};
|
||||
s->Append("</tr>");
|
||||
};
|
||||
s->Append("</tbody>");
|
||||
s->Append("</table>");
|
||||
|
||||
s->PrintLine();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue