**whoDat.bas

100 PRINT”Hi there children what is your name”
200 INPUT name$
300 IF name$=”Ahmed” THEN goto 500
350 IF name$=”Lev” THEN goto 600
400 PRINT “Nice Name”
450 GOTO 700
500 PRINT “You will be the Ruler of the World”
550 GOTO 700
600 PRINT “You are a school teacher, I have checked your records”
650 GOTO 700
700 PRINT “Have a great wonderful day for now”
800 END

 

One thought on “**whoDat.bas

  1. Logic is used in the code above because there are three outcomes. If your name is Lev, then it would compliment you and lead you to the designated line towards it. And if your name is Ahmed then it will say you are the ruler of the world. It is basically an equation 1 +1 =2, this and this gives you that outcome. 1+2= does not equal 2. And if you do not have those names then you are complimented on your name and says have a nice day.

    Like

Leave a comment