Commit 5cdc77a3 by Sam Sussman Committed by Sam Sussman

Added to the stage12.tes file

o Please enter the commit message for your changes. Lines starting
parent 8f799d75
Showing with 22 additions and 0 deletions
......@@ -12,5 +12,27 @@ function float fcount(float fnum) {
return fnum
}
function int fact(int facnum,int flag) {
if facnum-1 then {
if flag then {
output facnum
if 0 then {
output 0
}
if 0 then {
if readInput then {
output 100
}
}
if count(facnum) then {
output count(facnum)
}
}
facnum = facnum * fact(facnum-1,flag)
}
return facnum
}
output count(5)
output fcount(5.0)
output fact(readInput,readInput)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment