-2
bug123
5y

________*
_______* *
______ * * *
______* * * *
_____* * * * *
____* * * * * *
___* * * * * * *
How code this in 10 sc

Comments
  • 3
    My Imagination took less than 10 sec
  • 7
    Here the code for a DOS batch file:

    @echo ________*
    @echo _______* *
    @echo ______* * *
    @echo _____* * * *
    @echo ____* * * * *
    @echo ___* * * * * *
    @echo __* * * * * * *
  • 6
    print ("________*");
    sleep(1.66666667);
    print ("_______* *");
    sleep(1.66666667);
    print ("______* * *");
    sleep(1.66666667);
    print ("_____* * * *");
    sleep(1.66666667);
    print ("____* * * * *");
    sleep(1.66666667);
    print ("___* * * * * *");
    sleep(1.66666667);
    print ("__* * * * * * *");
  • 0
    @Fast-Nop @myss
    It was supposed to be doable in 10 sec.
    Use one print statement.
  • 0
    @Gregozor2121 Coding the loop logic takes longer than copy/pasting the line and overwriting the characters in insert mode. Using only one print statement was not required.
  • 0
    hahaha -2 keep kalm
  • 0
    @Fast-Nop
    I know but i wondered if you just could use one print to display multiple lines, because writing few print statements takes more time than just writing one with everything in it.
  • 1
    @Gregozor2121 Well the trick is that you have the stuff ligned up in the editor so that you can just use insert mode. This requires several lines. Of course, you could concatenate stuff afterwards, but that would cost more time.

    Especially because you only actually write print once, the rest is copy/paste.
Add Comment