From 9db7a26a6a6f75e0a734d6e5712b5454422cc12f Mon Sep 17 00:00:00 2001 From: cri Date: Fri, 16 Sep 2016 13:03:12 +0200 Subject: [PATCH] fixed sommatoria --- spesefurga.js | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/spesefurga.js b/spesefurga.js index b334fb6..414f17b 100644 --- a/spesefurga.js +++ b/spesefurga.js @@ -1,3 +1,10 @@ +var prog_name=[]; +var prog_data=[]; +var prog_indice=0; + + + + var sbollo=100; var sassicurazione=600; var deposito=600; @@ -32,14 +39,15 @@ console.log(p_giornaliero+" piano giornaliera a capa"); console.log(p_annuale+" piano annuale a capa, "+(365/n_user)+" giorni"); -function sommatoria(array_x, variabile){ - variabile=0; +function sommatoria(array_x){ + var variabile=0; for(var i=0;i