Jump to content

Search the Community

Showing results for tags 'return a value to a function'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. /* write a javascript program to accept 10 numbers from a user and return the average in an appropraite statement. The numbers shouldbe enterd one at a time. Allow the user to use refresh button to run script again */function Avg(avg){ var num=[],i,avg; var sum=0; alert("Enter 10 numbers:"); for(i=0; i<10; i++) { num[i]=prompt("Enter"+" "+(i+1)+" "+"number:"); } for(i=0; i<10; i++) { sum += parseInt(num[i]); avg=sum/parseInt(10); } document.writeln("Average is:"+" "+avg); }function reloadPage(){location.reload();}
×
×
  • Create New...