]> ruin.nu Git - proglang.git/blob - examples/fac
readBool now reads integer values, where 0 is false and the rest is true, instead...
[proglang.git] / examples / fac
1 int fac = 1;
2 int n = readInt;
3 n++;
4 while( n-- > 1) fac = fac*n;
5 print fac;