Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
1
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { string s1; char[] s2 = { 'L', 'i', 't', 'e', 'r', 'a', 'l' }; int i; Console.Write("Enter a string: "); s1 = Console.ReadLine(); Console.WriteLine("S1 is " + s1); Console.Write("S2 is "); Console.WriteLine(s2); Console.Write("S1 with spaces is: "); for (i = 0; i < s1.Length; i++) { Console.Write(s1[i] + " "); } string s3 = new string(s2); Console.WriteLine("\nS3 is " + s3); s2 = s1.ToCharArray(); Console.Write("S2 is "); Console.WriteLine(s2); Console.ReadKey(); } } }
run
|
edit
|
history
|
help
0
[REDACTED] database V0.1.6
base exterior
Prsonal informashin
adxasxd
Min max elements swap of the array
Testing
starpattern
KeyValue pair C#
Intuit // C# // listing_4.8 (while)
Intuit // C# // listing_4.4 (StreamReader // input.txt)