Programul de mai sus va afisa textul `aranjament colt flal`
Intructiunea insert (b,a,pos(‘ ‘, a)) , va introduce toate textele in unul obtinand `aranjament colorat floral`. Instructiunea Delete (a,i,3) va sterge ”ora” din ”colorat” de unde obtinem `aranjament colt floral`. Instructiunea Delete (a,i,2) va sterge ”ora” din ”floral” de unde obtinem `aranjament colt flal`
Dovezi de compilare: Sarcina 2
Programul de mai sus va afisa la compilare textul `0 7 7 6`
Se initalizeaza i:=pos(`INF`, s2) ce se egal cu 0. Se modifica i:=pos(`inf`, s2) ce este egal cu 7. Instructiunea write(i, ' '); va afisa `0 7` Instructia delete (s2, i,11) va sterge 11 elemente din s2, de unde obtinem 6. Iar instructiunea write(i,’ ‘‚length(2)) va afisa textul final, 0 7 7 6