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
first VB code
Fórum ➡ Parallel Threads ( The Funniest Version ) ♦
Project Euler No 2
test_hash
Add char to non-numerical words only
Practicando C#
Greatest Common Divisor of 2 or more numbers.
Unsorted Parallel Arrays finding min & max values.
Create URL Safe and Cryptographically Strong Short GUID
Validate or get the check digit of a Windows activation installation ID / confirmation ID