новые Видеоигры новые технологии
если есть фишки что дать за ИИ она улучшится
донат
https://yoomoney.ru/to/410014503851843Сбер. 2202200848330781

на Blitz-BASIC
Graphics 640,480,0,2
SetFont(LoadFont("system"))
; v nachale programmy
Global g_text_pos = 0
Global g_text$
Global g_text_word$;
str1$=Input("")
result$=""
Text_Begin(str1$)
While Text_Read_Word()
i=1
v$=""
its_number=False
char$=Mid(g_text_word,i,1)
While (char="0" Or char="1" Or char="2" Or char="3" Or char="4" Or char="5" Or char="6" Or char="7" Or char="8" Or char="9")
its_number=True
v$=v+char
i=i+1
char$=Mid(g_text_word,i,1)
Wend
If its_number = True
Text_Read_Word()
If g_text_word="+" Then
Text_Read_Word()
result$=result$+" "+Str(Int(v)+Int(g_text_word))
EndIf
EndIf
If its_number =False result$=result$+" "+g_text_word
Wend
Print result
WaitKey()
;------------------
Function Text_Begin(text_$)
g_text=text_
g_text_pos = 1
g_text_word=""
End Function
Function Text_Read_Word()
g_text_word =""
If (g_text_pos > Len(g_text))Return 0;
While (Mid(g_text,g_text_pos,1) = " ") : g_text_pos=g_text_pos+1 : Wend
While (Mid(g_text,g_text_pos,1) <> " " And g_text_pos<=Len(g_text))
g_text_word =g_text_word+ Mid(g_text,g_text_pos,1);
g_text_pos=g_text_pos+1
Wend
g_text_pos=g_text_pos+1;
Return 1;
End Function