Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Array Alternate elements
//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) { //Your code goes here Console.WriteLine("Array Alternate elements"); int [] array=new int[222]; for (int i=1; i<=21 ; i++) { array[i]=i; } for (int i=1; i<=21; i+=2) { Console.WriteLine(array[i]); } } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
6.1 Parallelism: race conditions
Reverse String in for loop
Microsoft Code
Trabbd
SpawnController
for (int i= 2 ; i==5 ; i++)
pyramidalt
Multi-Dimensional Array
|= Caching
Lab7
Please log in to post a comment.