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

#[C#][1], 105 bytes

C# , 105 bytes

public class P{public static void Main(string[]a){foreach(char c in a[0]){System.Console.Write(c+" ");}}}

EDIT: Removed space between string[] and a, also removed ToString as its not crucial saving a total of 12 bytes [1]: https://visualstudio.microsoft.com/ [2]: https://dotnetfiddle.net/3jcW64

#[C#][1], 105 bytes

public class P{public static void Main(string[]a){foreach(char c in a[0]){System.Console.Write(c+" ");}}}

EDIT: Removed space between string[] and a, also removed ToString as its not crucial saving a total of 12 bytes [1]: https://visualstudio.microsoft.com/ [2]: https://dotnetfiddle.net/3jcW64

C# , 105 bytes

public class P{public static void Main(string[]a){foreach(char c in a[0]){System.Console.Write(c+" ");}}}

EDIT: Removed space between string[] and a, also removed ToString as its not crucial saving a total of 12 bytes

deleted 176 characters in body
Source Link

#[C#][1], 117105 bytes

public class P{public static void Main(string[] astring[]a){foreach(char c in a[0]){System.Console.Write(c.ToString()+" ");}}}

EDIT: Full code now EDIT: Feel dumb, here's old code: 134 bytes

public class Program{public static void Main(string[] a){string p=a[0];foreach(char c in p){System.Console.Write(c.ToString()+"c+" ");}}}

EDIT: Removed Try Onlinespace between string[] and a, also removed ToString as .NET Fiddle doesn't support parametersits not crucial saving a total of 12 bytes [1]: https://visualstudio.microsoft.com/ [2]: https://dotnetfiddle.net/3jcW64

#[C#][1], 117 bytes

public class P{public static void Main(string[] a){foreach(char c in a[0]){System.Console.Write(c.ToString()+" ");}}}

EDIT: Full code now EDIT: Feel dumb, here's old code: 134 bytes

public class Program{public static void Main(string[] a){string p=a[0];foreach(char c in p){System.Console.Write(c.ToString()+" ");}}}

EDIT: Removed Try Online as .NET Fiddle doesn't support parameters [1]: https://visualstudio.microsoft.com/ [2]: https://dotnetfiddle.net/3jcW64

#[C#][1], 105 bytes

public class P{public static void Main(string[]a){foreach(char c in a[0]){System.Console.Write(c+" ");}}}

EDIT: Removed space between string[] and a, also removed ToString as its not crucial saving a total of 12 bytes [1]: https://visualstudio.microsoft.com/ [2]: https://dotnetfiddle.net/3jcW64

Shorten my answer
Source Link

#C# #[C#][1], 134117 bytes

public class P{public static void Main(string[] a){foreach(char c in a[0]){System.Console.Write(c.ToString()+" ");}}}

EDIT: Full code now EDIT: Feel dumb, here's old code: 134 bytes

public class Program{public static void Main(string[] a){string p=a[0];foreach(char c in p){System.Console.Write(c.ToString()+" ");}}}

Try online! EDIT: Removed Try Online as .NET Fiddle doesn't support parameters EDIT[1]: Full code nowhttps://visualstudio.microsoft.com/ [2]: https://dotnetfiddle.net/3jcW64

#C#, 134 bytes

public class Program{public static void Main(string[] a){string p=a[0];foreach(char c in p){System.Console.Write(c.ToString()+" ");}}}

Try online! EDIT: Full code now

#[C#][1], 117 bytes

public class P{public static void Main(string[] a){foreach(char c in a[0]){System.Console.Write(c.ToString()+" ");}}}

EDIT: Full code now EDIT: Feel dumb, here's old code: 134 bytes

public class Program{public static void Main(string[] a){string p=a[0];foreach(char c in p){System.Console.Write(c.ToString()+" ");}}}

EDIT: Removed Try Online as .NET Fiddle doesn't support parameters [1]: https://visualstudio.microsoft.com/ [2]: https://dotnetfiddle.net/3jcW64

added 100 characters in body
Source Link
Loading
Source Link
Loading

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