Console.Write ("Please enter the length of the array:");
int N=int. Parse (Console.ReadLine ());
Int[] Nums=new Int[n];
for (int i = 0; i < Nums. Length; i++) {
Console.Write ("Please enter" + (i+1) + "number");
Nums[i] = Int. Parse (Console.ReadLine ());
}
Console.WriteLine ();
Console.WriteLine ("You enter the order of the numbers after sorting:");
for (int i = 0; i < Nums. Length-1; i++)
{
for (int j = i + 1; j < Nums. Length; J + +) {
if (Nums[i] > Nums[j]) {
int t = nums[i];
Nums[i] = Nums[j];
NUMS[J] = t;
}
}
}
for (int j = 0; J < Nums. Length; J + +)
{
Console.Write (Nums[j] + "");
}
Console.WriteLine ();
Console.WriteLine ("Where the odd number is:");
for (int j = 0; J < Nums. Length; J + +)
{
If (Nums[j]% 2 = = 1) {
Console.Write (Nums[j] + "");
}
}
Console.WriteLine ();
Console.WriteLine ("Where prime numbers are:");
for (int i = 0; i < Nums. Length; i++)
{
int m = 0;
for (int j = 1; J <= Nums[i]; j + +)
{
If (nums[i]% J = = 0)
{
m++;
}
}
if (m = = 2)
{
Console.Write (nums[i]+ "");
}
}
C # Array Parser