Is there an easier/better way to create a script that repeats n number of times?

Is there an easier/better way to create a script that repeats n number of times?

nline = List:Int({1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11});
    cntLst = List:Int();
    num = input.n;
    for each integ in nline
    {
        if (!(num  ==  0))
        {
            cntLst.add(num);
            num = (num  -  1);
        }
    }
    for each ent in cntLst
    {
      some proceedure
    }

Any help would be great!