Welcome to Phrogram Sign in | Join | Help


CountAndAverage - manipulating numbers in Phrogram

File Details
Downloads: 81 File Size: 1.1kB
Posted By: davidw Views: 44
Date Added: Tue, Mar 25 2008

This is another variation on the CountFour programs and shows how you can create a function that derives an average.

In this program, the user is prompted to enter a series of numbers of his or her own choosing. The program also adds up all the inputs (both their number , or "count" and their values) and writes the information to the console, including the average.

Filed under:
Comments
No comments exist for this file.