diff --git a/indexRownowagi/index.cs b/indexRownowagi/index.cs new file mode 100644 index 0000000..594ac9f --- /dev/null +++ b/indexRownowagi/index.cs @@ -0,0 +1,46 @@ + + using System; + +public class Program +{ + public static void Main() + { + int[] A = {-7, 1, 5, 2, -4, 3, 0}; + + int length = A.Length; + + + + + if(length < 3) + { + System.Console.Write("-1"); + } + else + { + for(int k=1; ksort[i+1]) + { + int support = sort[i]; + sort[i] = sort[i+1]; + sort[i+1] = support; + } + } + length--; + } + while(length>1); + for(int j = length-1; j >= 0; j--) + { + Console.Write(sort[j] + ","); + } + } + + static void Main(string[] args) + { + int[] sortowanie = {21, 14, 1, 66, 45}; + + sortowanie(sortowanie[]); + } + + + + + } +} diff --git a/sortowanie/Szkola.csproj b/sortowanie/Szkola.csproj new file mode 100644 index 0000000..2082704 --- /dev/null +++ b/sortowanie/Szkola.csproj @@ -0,0 +1,8 @@ + + + + Exe + net5.0 + + +