Created
March 1, 2013 19:39
-
-
Save matschaffer/5067170 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make a sum and count variable | |
for (/* i from 0 to 2 */) { | |
// read user input | |
// add to sum | |
// increment count | |
} | |
//print sum and sum / count | |
//reset sum and count | |
//get user input | |
while (/* user input isn't -999 */) { | |
// add to sum | |
// increment count | |
// get user input | |
} | |
//print sum and sum / count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment