It will first calculate the sum of the numbers in 1 to 100. then you can type in any number then the smart monkey will calculate the sum of the numbers in 1 to the number you typed in.
I used the scratch guide