Skip to main content
Commonmark migration
Source Link

#Windows Batch - 65 62 61 bytes

Windows Batch - 65 62 61 bytes

btw this is my first PPCG answer

@for /l %%p in (40,2,72)do @echo %%p&@ping 1.1 -n 1 -w 10>nul

This exits when the degree reaches 72.


#76 75 bytes - Does not sleep at end

76 75 bytes - Does not sleep at end

@for /l %%p in (40,2,72)do @echo %%p&if %%p lss 72 @ping 1.1 -n 1 -w 10>nul

Ungolfed and explanation:

@echo off                           - Turns of the prompt(C:\Foo\Bar\Baz>)
for /l %%p in (40,2,72) do (        - For loop that loops from 40 to 72, increase 2 each
    echo %%p                        - Outputs the loop counter(which is the temp.)
    
if %%p lss 72 (                     - If loop counter is less than 72,
        ping -n 1 -w 10 1.1 >nul    - ping an non-existing IP to make delay
                                    
                                    - note: ping will always make 500ms delay
                                    - if waiting time is less than 500ms
    )                               - Closing bracket(if statement)

)                                   - Closing bracket(for statement)

#Windows Batch - 65 62 61 bytes

btw this is my first PPCG answer

@for /l %%p in (40,2,72)do @echo %%p&@ping 1.1 -n 1 -w 10>nul

This exits when the degree reaches 72.


#76 75 bytes - Does not sleep at end

@for /l %%p in (40,2,72)do @echo %%p&if %%p lss 72 @ping 1.1 -n 1 -w 10>nul

Ungolfed and explanation:

@echo off                           - Turns of the prompt(C:\Foo\Bar\Baz>)
for /l %%p in (40,2,72) do (        - For loop that loops from 40 to 72, increase 2 each
    echo %%p                        - Outputs the loop counter(which is the temp.)
    
if %%p lss 72 (                     - If loop counter is less than 72,
        ping -n 1 -w 10 1.1 >nul    - ping an non-existing IP to make delay
                                    
                                    - note: ping will always make 500ms delay
                                    - if waiting time is less than 500ms
    )                               - Closing bracket(if statement)

)                                   - Closing bracket(for statement)

Windows Batch - 65 62 61 bytes

btw this is my first PPCG answer

@for /l %%p in (40,2,72)do @echo %%p&@ping 1.1 -n 1 -w 10>nul

This exits when the degree reaches 72.


76 75 bytes - Does not sleep at end

@for /l %%p in (40,2,72)do @echo %%p&if %%p lss 72 @ping 1.1 -n 1 -w 10>nul

Ungolfed and explanation:

@echo off                           - Turns of the prompt(C:\Foo\Bar\Baz>)
for /l %%p in (40,2,72) do (        - For loop that loops from 40 to 72, increase 2 each
    echo %%p                        - Outputs the loop counter(which is the temp.)
    
if %%p lss 72 (                     - If loop counter is less than 72,
        ping -n 1 -w 10 1.1 >nul    - ping an non-existing IP to make delay
                                    
                                    - note: ping will always make 500ms delay
                                    - if waiting time is less than 500ms
    )                               - Closing bracket(if statement)

)                                   - Closing bracket(for statement)
added 231 characters in body
Source Link
stevefestl
  • 549
  • 3
  • 12

#Windows Batch - 65 62 62 bytes61 bytes

btw this is my first PPCG answer

@for /l %%p in (40,2,72)do @echo %%p&@ping 1.1 -n 1 -w 500>nul10>nul

This exits when the degree reaches 72.


#76#76 75 bytes - Does not sleep at end

@for /l %%p in (40,2,72)do @echo %%p&if %%p lss 72 @ping 1.1 -n 1 -w 500>nul10>nul

Ungolfed and explanation:

@echo off                           - Turns of the prompt(C:\Foo\Bar\Baz>)
for /l %%p in (40,2,72) do (        - For loop that loops from 40 to 72, increase 2 each
    echo %%p                        - Outputs the loop counter(which is the temp.)
     
if %%p lss 72 (                     - If loop counter is less than 72,
        ping -n 1 -w 50010 1.1 >nul    - ping an non-existing IP to make delay
                                    
                                    - note: ping will always make 500ms delay
                                    - if waiting time is less than 500ms
    )                               - Closing bracket(if statmentstatement) 

)                                   - Closing bracket(for statmentstatement)

#Windows Batch - 65 62 bytes

btw this is my first PPCG answer

@for /l %%p in (40,2,72)do @echo %%p&@ping 1.1 -n 1 -w 500>nul

This exits when the degree reaches 72.


#76 bytes - Does not sleep at end

@for /l %%p in (40,2,72)do @echo %%p&if %%p lss 72 @ping 1.1 -n 1 -w 500>nul

Ungolfed and explanation:

@echo off                           - Turns of the prompt(C:\Foo\Bar\Baz>)
for /l %%p in (40,2,72) do (        - For loop that loops from 40 to 72, increase 2 each
    echo %%p                        - Outputs the loop counter(which is the temp.)
    if %%p lss 72 (                 - If loop counter is less than 72,
        ping -n 1 -w 500 1.1 >nul   - ping an non-existing IP to make delay
    )                               - Closing bracket(if statment)
)                                   - Closing bracket(for statment)

#Windows Batch - 65 62 61 bytes

btw this is my first PPCG answer

@for /l %%p in (40,2,72)do @echo %%p&@ping 1.1 -n 1 -w 10>nul

This exits when the degree reaches 72.


#76 75 bytes - Does not sleep at end

@for /l %%p in (40,2,72)do @echo %%p&if %%p lss 72 @ping 1.1 -n 1 -w 10>nul

Ungolfed and explanation:

@echo off                           - Turns of the prompt(C:\Foo\Bar\Baz>)
for /l %%p in (40,2,72) do (        - For loop that loops from 40 to 72, increase 2 each
    echo %%p                        - Outputs the loop counter(which is the temp.)
     
if %%p lss 72 (                     - If loop counter is less than 72,
        ping -n 1 -w 10 1.1 >nul    - ping an non-existing IP to make delay
                                    
                                    - note: ping will always make 500ms delay
                                    - if waiting time is less than 500ms
    )                               - Closing bracket(if statement) 

)                                   - Closing bracket(for statement)
added 29 characters in body
Source Link
stevefestl
  • 549
  • 3
  • 12

#Windows Batch - 65 62 bytes

btw this is my first PPCG answer

@for /l %%p in (40,2,72)do @echo %%p&@ping 1.1 -n 1 -w 500>nul

This exits when the degree reaches 72.


#76 bytes - Does not sleep at end

@for /l %%p in (40,2,72)do @echo %%p&if %%p lss 72 @ping 1.1 -n 1 -w 500>nul

Ungolfed and explanation:

note: haven't edit the explanation

@echo off                           - Turns of the prompt(C:\Foo\Bar\Baz>)
for /l %%p in (40,2,72) do (        for- loopsFor loop that loops from 40 to 72, increasingincrease 2 each
echo %%p      echo %%p                      echo(say) the number- ofOutputs the loop counter (which is the temp.)
ping -n 1 -w 500if 1.1.1.1%%p >nullss 72 (      delay using ping
)         - If loop counter is less than 72,
        ping -n 1 -w 500 1.1 >nul   - ping an closingnon-existing bracketIP to end formake statementdelay
<pause>    )                          stops the command and display
 - Closing bracket(if statment)
)                                 "Press any key- toClosing continue..."bracket(for statment)

#Windows Batch - 65 62 bytes

btw this is my first PPCG answer

@for /l %%p in (40,2,72)do @echo %%p&@ping 1.1 -n 1 -w 500>nul

This exits when the degree reaches 72.


#76 bytes - Does not sleep at end

@for /l %%p in (40,2,72)do @echo %%p&if %%p lss 72 @ping 1.1 -n 1 -w 500>nul

Ungolfed and explanation:

note: haven't edit the explanation

@echo off
for /l %%p in (40,2,72) do (        for loops that loops from 40 to 72, increasing 2 each
echo %%p                             echo(say) the number of the loop counter which is the temp.
ping -n 1 -w 500 1.1.1.1 >nul        delay using ping
)                                    closing bracket to end for statement
<pause>                              stops the command and display
                                     "Press any key to continue..."

#Windows Batch - 65 62 bytes

btw this is my first PPCG answer

@for /l %%p in (40,2,72)do @echo %%p&@ping 1.1 -n 1 -w 500>nul

This exits when the degree reaches 72.


#76 bytes - Does not sleep at end

@for /l %%p in (40,2,72)do @echo %%p&if %%p lss 72 @ping 1.1 -n 1 -w 500>nul

Ungolfed and explanation:

@echo off                           - Turns of the prompt(C:\Foo\Bar\Baz>)
for /l %%p in (40,2,72) do (        - For loop that loops from 40 to 72, increase 2 each
    echo %%p                        - Outputs the loop counter(which is the temp.)
    if %%p lss 72 (                 - If loop counter is less than 72,
        ping -n 1 -w 500 1.1 >nul   - ping an non-existing IP to make delay
    )                               - Closing bracket(if statment)
)                                   - Closing bracket(for statment)
deleted 37 characters in body; added 40 characters in body
Source Link
stevefestl
  • 549
  • 3
  • 12
Loading
added 1 character in body
Source Link
stevefestl
  • 549
  • 3
  • 12
Loading
deleted 247 characters in body
Source Link
stevefestl
  • 549
  • 3
  • 12
Loading
added 274 characters in body
Source Link
stevefestl
  • 549
  • 3
  • 12
Loading
added 19 characters in body
Source Link
stevefestl
  • 549
  • 3
  • 12
Loading
added 42 characters in body
Source Link
stevefestl
  • 549
  • 3
  • 12
Loading
Source Link
stevefestl
  • 549
  • 3
  • 12
Loading