INPUT "vvedite predlojenie ",a$
FOR i=LEN(a$) TO 1 step-1
IF MID$(a$,i,1)=" "THEN b$=MID$(a$,i+1,1)
NEXT
PRINT "eto bukva=";b$
INPUT "vvedite predlojenie ",a$
FOR i=LEN(a$) TO 1 step-1
IF MID$(a$,i,1)=" "THEN b$=MID$(a$,i+1,1)
NEXT
PRINT "eto bukva=";b$