isOddOrEven(k) { var temp; read k; print k; temp = k; while(temp > 0) { temp = temp - 2; } if(temp == 0) {print " is even";} else { print " is odd";} }