var a =Number(prompt( '1(woman) or 2(man)')); var v =Number(prompt( 'your weight')) ; var r =Number(prompt( 'your height')); var l = Number(prompt( 'your age')); var passive = Number(prompt('passive lifestyle; yes-1 ,no-2 ' )); var tren = Number(prompt('workouts three times a week; yes-1, no-2 ')); var fef = Number(prompt('workouts five times a week; yes-1, no-2 ')); var int = Number(prompt('daily works; yes-1; no-2')); var k=0; if(passive==1){ k=1.2 } else if( tren ==1){ k=1.375 } else if( fef==1){ k=1.5 } else if(int==1){ k=1.6375 }; if (a==1){ alert((655.1+(9.563*v)+(1.85*r)-(4.676*l))*k ) } else if(a==2){ alert((66.5+(13.75*v)+(5.003*r)-(6.775*l))*k) };