solve "abs(x)=2" and question in "print" function



>> > A:[1,2], B:[3,4],C:[8,7],solve
>> > (1) the mid p oint of A,,B
>> > (2) th! e gravity point of the triangle ABC
>> >
>> > I usual ly typing :
>> > print ('A:[1,2], B:[3,4],C:[8,7],solve (1) the mid p oint of A,,B (2)
>> > the gravity point of the triangle ABC');

Maybe the printf function is what you are looking for:

printf(true, "A:~a, B:~a, C:~a, solve~% (1) the mid point of A, B~%
(2) the gravity point of ABC", [1,2], [3,4], [8,7]);

=>

A:[1,2], B:[3,4], C:[8,7], solve
 (1) the mid point of A, B
 (2) the gravity point of ABC

enter "? printf" for more info.

-- 
Andrej