Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
use IO;
|
||||
|
||||
bundle Default {
|
||||
class TwoDee {
|
||||
function : Main(args : System.String[]) ~ Nil {
|
||||
DoIt();
|
||||
}
|
||||
|
||||
function : native : DoIt() ~ Nil {
|
||||
Console->GetInstance()->Print("Enter x: ");
|
||||
x := Console->GetInstance()->ReadString()->ToInt();
|
||||
|
||||
Console->GetInstance()->Print("Enter y: ");
|
||||
y := Console->GetInstance()->ReadString()->ToInt();
|
||||
|
||||
if(x > 0 & y > 0) {
|
||||
array : Int[,] := Int->New[x, y];
|
||||
array[0, 0] := 2;
|
||||
array[0, 0]->PrintLine();
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue