Add tags

Add tags to the following comment

ActionScriptですが…。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
var n:Number = 4;
var str:String = "";

for(var i = 1;i<n*2;i++){
    var t:Number = i;
    if(i>n){
        t = (n*2)-i;
    }
    for(j = 0;j<Math.abs(t);j++){
        str += "*";
    }
    str += "\n";
}
trace(str);

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...