Last active
December 12, 2015 10:38
-
-
Save tscho/4760019 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
var MaxNum = 0; | |
var MinNum = 10000000000; | |
var count = 0 | |
while (count < 6) { | |
print ("please enter a number"); | |
var num1 = getInput | |
num1 = parseFloat (num1) | |
if (num1 > MaxNum{ | |
Maxnum = num1 | |
} | |
if (num1 < MinNum) { | |
MinNum = num1 | |
count = count + 1; | |
} |
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
var MaxNum = 0; | |
var MinNum = 0; | |
var count = 0 | |
while (count < 6) { | |
print ("please enter a number"); | |
var num1 = getInput | |
num1 = parseFloat (num1) | |
if (num1 > MaxNum || count = 0) { | |
Maxnum = num1 | |
} | |
if (num1 < MinNum || count = 0) { | |
MinNum = num1 | |
count = count + 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment