How to make many cubes.

i'm trying to make many cubes at once.
using a for (i) loop
but for some reason is not working for me



Can someone help me please?