two left
This commit is contained in:
16
labs/lab5_done/Loop/Program.cs
Normal file
16
labs/lab5_done/Loop/Program.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
int[] myArray = {100, 1, 32, 3, 14, 25, 6, 17, 8, 99};
|
||||
int n = 10;
|
||||
for (int i = 0; i < n; i++)
|
||||
{
|
||||
if (myArray[i] % 2 == 0) myArray[i] = 0;
|
||||
|
||||
Console.Write(myArray[i] + " ");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user