xxxxxxxxxx
18
/***********************************************************************************
NAME: Zenek Chapman
DATE: Sept 17
CLASS: Computer Science 30
PROGRAM DESCRIPTION: Lesson 2 Programming Problems
*************************************************************************************/
//sortaSum
function sortaSum(a,b){
sum = a + b
if (sum > 9 && sum < 20){
sum = 20
console.log (sum)
}
else{
console.log(sum)
}
}
sortaSum(2,4)