09-01-2024, 03:14 PM
(This post was last modified: 09-01-2024, 06:43 PM by Kernelpanic.)
@Pete it's nice, but it is just an adding back and forth, but in my opinion it's illogical. The AI is squeaking somehow. It would to be oiled.
PS: That is an AI-Program:
PS: That is an AI-Program:
Code: (Select All)
'Humorvolles Beispiel fuer die KI - 1. Sept. 2024
Option _Explicit
Dim As Integer zahl1, zahl2, summe
Print
Input "Enter a number between 1 and 10: ", zahl1
Input "And another number : ", zahl2
summe = zahl1 + zahl2
Print: Print
If zahl1 > 10 Or zahl2 > 10 Or Zahl1 < 1 Or Zahl2 < 1 Then
Beep: Print "Idiot! Between 1 and 10! - Do you think I don't notice?"
Else
Print Using "The sum is: ##"; summe
Print "That is AI"
End If
End