English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I've wrote this script to average for number that user enters . but it doesn't work properly . plz help me with this . here's the script :
-------------------------------------------------------------------------------


function return



showing the return




2006-08-29 23:03:57 · 3 answers · asked by cutie_boy1987 1 in Computers & Internet Programming & Design

3 answers

The write code is below. You need to convert individual entry from String to INteger before evaluation.



function return



showing the return




2006-08-29 23:13:50 · answer #1 · answered by Vinish 1 · 0 0

Let me introduce you to a handy little debug tool.

alert(a+b+c+d);

Add this to your Average function and the answer is obvious.

And hey! No expensive debugging tool is required.

2006-08-30 06:21:07 · answer #2 · answered by AnalProgrammer 7 · 0 0

cant help you there...

2006-08-30 06:06:30 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers