Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
array print 2nd half first and 1 half later
//Microsoft (R) Visual C# Compiler version 3.4.0-beta4-19562-05 (ff930dec) //Copyright (C) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { int[] arr=new int[]{1,2,3,4,5,6}; int arrlength=arr.Length/2; int[] arr1=new int[3]; int[] arr2=new int[3]; for(int i=arrlength;i<arrlength*2;i++) { int j=0; arr1[j]=arr[i]; Console.Write(arr1[j]); j++; } for(int i=0;i<arrlength;i++) { int j=0; arr2[j]=arr[i]; Console.Write(arr2[j]); j++; } } } }
run
|
edit
|
history
|
help
0
VB6 DateSerial to C#
problem version 2
squaredigits
helloworld_java
Encryption & Decryption AES C#
Huffman Algorithm
,
Arrays Solved
vttrtbrbt
Integers Array manipulation examples