int[] a = {25, 30, 40, 5};
int[] a; a = new int[3]; a[0] = 25; a[1] = 30; a[2] = 40; a[3] = 5;
int[] a; a = new int{25, 30, 40, 5};
int[] a; a = new int[4]{25, 30, 40, 5};
int[] a; a = new int[4]; a[0] = 25; a[1] = 30; a[2] = 40; a[3] = 5;
String s1 = "ALL MEN ARE CREATED EQUAL"; String s2; s2 = s1.Substring(12, 3); Console.WriteLine(s2);
namespace CuriousTabConsoleApplication { class SampleProgram { static void Main(string[ ] args) { int i = 10; double d = 34.340; fun(i); fun(d); } static void fun(double d) { Console.WriteLine(d + " "); } } }
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.