Fahad/MCG-CS/Code/Factorial2.kcl
author Christian Urban <christian.urban@kcl.ac.uk>
Wed, 02 Mar 2022 11:49:17 +0000
changeset 437 43b87bab0dac
parent 45 7545b1bc1514
permissions -rw-r--r--
merged (possibly destroyed things?)

var fact = 7;

fact = fact + 1;

var c = 0;
var result = 1;

for c = 1 to fact do
	result = result * c;
end;

print "The factorial is:";
print result;