Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

SmileBASIC, 55 bytes

INPUT S,E
FOR I=S TO E
INC N,INSTR(STR$(I),"5")<0NEXT?N

#SmileBASIC, 55 bytes INPUT S,E FOR I=S TO E INC N,INSTR(STR$(I),"5")<0NEXT?N NothingNothing special, just uses INSTR and STR$ to check for 5.

#SmileBASIC, 55 bytes INPUT S,E FOR I=S TO E INC N,INSTR(STR$(I),"5")<0NEXT?N Nothing special, just uses INSTR and STR$ to check for 5.

SmileBASIC, 55 bytes

INPUT S,E
FOR I=S TO E
INC N,INSTR(STR$(I),"5")<0NEXT?N

Nothing special, just uses INSTR and STR$ to check for 5.

Fixed mistakes
Source Link
12Me21
  • 6.8k
  • 1
  • 23
  • 40

#SmileBASIC, 52 55 bytes INPUT S,E FOR I=S TO E INC N,INSTR(STR$(I),"5")>0NEXT<0NEXT?N Nothing special, just uses INSTR and STR$ to check for 5.

#SmileBASIC, 52 bytes INPUT S,E FOR I=S TO E INC N,INSTR(STR$(I),"5")>0NEXT Nothing special, just uses INSTR and STR$ to check for 5.

#SmileBASIC, 55 bytes INPUT S,E FOR I=S TO E INC N,INSTR(STR$(I),"5")<0NEXT?N Nothing special, just uses INSTR and STR$ to check for 5.

Source Link
12Me21
  • 6.8k
  • 1
  • 23
  • 40

#SmileBASIC, 52 bytes INPUT S,E FOR I=S TO E INC N,INSTR(STR$(I),"5")>0NEXT Nothing special, just uses INSTR and STR$ to check for 5.

AltStyle によって変換されたページ (->オリジナル) /