Fahad/MCG-CS/Code/Factorial2.kcl
author Christian Urban <christian.urban@kcl.ac.uk>
Sun, 17 Jul 2022 20:09:38 +0100
changeset 570 3ed514e2d93c
parent 45 7545b1bc1514
permissions -rw-r--r--
added paper

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;