textwindow.writeline("welcome to the quiz")

textwindow.writeline("do you wanna play the quiz?Y/N")

ans=textwindow.read()

while ans="Y"

    p=0

    textwindow.writeline("?")

    ans=textwindow.read()

    if ans="" then

        p=p+1

    else

        p=p-1

    endif

    textwindow.writeline("?")

    ans=textwindow.read()

    if ans="" then

        p=p+1

    else

        p=p-1

    endif

textwindow.writeline("")

ans=textwindow.read()

    if ans="" then

        p=p+1

    else

        p=p-11

    endif

EndWhile

textwindow.writeline("welcome to the quiz")

textwindow.writeline("do you wanna play the quiz?Y/N")

ans=textwindow.read()

while ans="Y"

    p=0

    textwindow.writeline("?")

    ans=textwindow.read()

    if ans="" then

        p=p+1

    else

        p=p-1

    endif

    textwindow.writeline("?")

    ans=textwindow.read()

    if ans="" then

        p=p+1

    else

        p=p-1

    endif

textwindow.writeline("")

ans=textwindow.read()

    if ans="" then

        p=p+1

    else

        p=p-11

    endif

EndWhile