int a [] = {0,11,22,33,44,55,66,77,88,99}; void setup(){ size(800,600); } void draw(){ int sum = 0; //next fill(0); for(int s = 0 ; s < a.length ; s++){ sum += a[s]; background(255); text(s,100,300); text(a[s],100,400); } textSize(60); text(sum,100,100); text(a.length,100,200); }