xxxxxxxxxx
23
let account = [];
let balance = 0;
function setup() {
createCanvas(400, 400);
for(let i = 0; i < 10; i++){
account.push(round(random(-100,100),2));
}
console.log(account);
account.push(100);
for(let i = 0; i < account.length; i++){
balance = balance + account[i];
console.log(balance);
}
}
function draw() {
background(220);
}