//prints the first three digits of x x = 12345; if (x == 2 * (x/2)) then print "digit 0 = "; print 0; else print "digit 0 = "; print 1; endif print newline; x = x/2; if (x == 2 * (x/2)) then print "digit 1 = "; print 0; else print "digit 1 = "; print 1; endif print newline; x = x/2; if (x == 2 * (x/2)) then print "digit 2 = "; print 0; else print "digit 2 = "; print 1; endif print newline;