![]() |
Department of
Mathematics and Computer Science |
|
icont mpicon.icn
mpicon
One may omit the extension when invoking icont, if it is
.icn.
math 22: script
Script started on Wed Apr 26 13:44:43 2000
math 23: more fact.icn
procedure main()
write("Input number of desired factorial")
i := read()
fact := 1
j := 1
while j <= i do {
fact := fact*j
j := j+1
}
write("factorial of ",i," is ",fact)
end
math 24: icont fact Translating: fact.icn: main No errors Linking: math 25: fact Input number of desired factorial 100 factorial of 100 is 9332621544394415268169923885626670049071 596826438162146859296389521759999322991560894146397615651828 6253697920827223758251185210916864000000000000000000000000 math 26: exit script done on Wed Apr 26 13:46:43 2000
My email address is
dsmolarski@math.scu.edu
This page last updated 26 April 2000.