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 Revisions

7 of 12
deleted 55 characters in body
Gymhgy
  • 8k
  • 12
  • 35

C# (Visual C# Interactive Compiler), 174 bytes

s=>{int y=new Random().Next(10)+1,i=0;for(Write($"How to {s=s[9..^1]} in {y} easy steps!\n\n");i++<y;)Write($"Step {i} -{i-y:; Do not} {(char)(s[0]^(i<y?0:32))+s[1..]}.\n");}

-1 byte thanks to Dominic van Essen

+13 bytes due to having to remove the "s" in steps if the random number = 1.

Try it online!

Gymhgy
  • 8k
  • 12
  • 35

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