5ce5316a33 2021-03-01 1: n:=3;
5ce5316a33 2021-03-01 2: if (evenp(n)) then write n," is even" else write n, " is odd";
5ce5316a33 2021-03-01 3: if (fixp(n)) then write n," is Integer" else write n, " is not Integer";
5ce5316a33 2021-03-01 4: n:=pi;
5ce5316a33 2021-03-01 5: if (fixp(n)) then write n," is Integer" else write n, " is not Integer";
5ce5316a33 2021-03-01 6: n:=3.1;
5ce5316a33 2021-03-01 7: if (fixp(n)) then write n," is Integer" else write n, " is not Integer";
5ce5316a33 2021-03-01 8: %
5ce5316a33 2021-03-01 9: a:=(b+c)^2;
5ce5316a33 2021-03-01 10: if (freeof(a,b)) then write b," not in ",a else write b," is in ",a;
5ce5316a33 2021-03-01 11: a:=(c+d)^2;
5ce5316a33 2021-03-01 12: if (freeof(a,b)) then write b," not in ",a else write b," is in ",a;
5ce5316a33 2021-03-01 13: %
5ce5316a33 2021-03-01 14: n:=pi;
5ce5316a33 2021-03-01 15: if (numberp(n)) then write n," is a number" else write n, " is not a number";
5ce5316a33 2021-03-01 16: n:=3.1;
5ce5316a33 2021-03-01 17: if (numberp(n)) then write n," is a number" else write n, " is not a number";
5ce5316a33 2021-03-01 18: %
5ce5316a33 2021-03-01 19: if (ordp(n,c)) then write n," before ",c else write n, " after ",c;
5ce5316a33 2021-03-01 20: n:=z;
5ce5316a33 2021-03-01 21: if (ordp(n,c)) then write n," before ",c else write n, " after ",c;
5ce5316a33 2021-03-01 22: %
5ce5316a33 2021-03-01 23: n:=10;
5ce5316a33 2021-03-01 24: if (primep(n)) then write n," is prime" else write n, " is not prime";
5ce5316a33 2021-03-01 25: n:=11;
5ce5316a33 2021-03-01 26: if (primep(n)) then write n," is prime" else write n, " is not prime";