Sam Powell - ti 83/84 programs - Math/Computer Teacher - Northridge H.S. - Middlebury Indiana|Programming Page |TI 83/84 Programs |mrpowell.net |
Input “ENTER A NUMBER”,N /Outputting prompt and inputting data stored in “N”
While N < 10 /Begin loop (remains active until While N<10 is false)
Disp N /Displays the value stored in the variable “N”
/stores the value of N+S into S thus sums the count down numbers.
/stores the value of N+1 into N thus changes the count down number.
/stores the value of C+1 into C thus counts the passes through the loop.
Pause /Pause program until “ENTER” is pressed
END /End of Loop
Disp “SUM=”,S /Outputs the string “SUM=” and the value stored in S
Disp “COUNT”,C /Outputs “COUNT=” and the value stored in C
ENTER A NUMBER 8