Skip to content

Instantly share code, notes, and snippets.

@tscho
Last active December 12, 2015 10:38
Show Gist options
  • Save tscho/4760019 to your computer and use it in GitHub Desktop.
Save tscho/4760019 to your computer and use it in GitHub Desktop.
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;
}
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