INPUT "vvedite dvuznachnoe chislo ", n
INPUT "vvedite chislo a ", a
s = n \ 10 + n MOD 10
PRINT "summa cifr ";
IF s > 9 THEN PRINT "dvuznachnoe chislo " ELSE PRINT "ne dvuznachnoe chislo "
PRINT "summa cifr ";
IF s > a THEN PRINT "bolshe chisla a" ELSE PRINT "ne bolshe chisla a"
Тестирование выполнено в программе QB64 ( Скачать )