Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Сортировка массива
//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; namespace Rextester { public class Program { public static void Main(string[] args) { int[] nums = {8, 4, 3, 6, 0, -5,-9}; int temp; for(int i=0; i<nums.Length-1; i++) { for(int j=i+1; j<nums.Length; j++) { if(nums[i] > nums[j]) { temp = nums[i]; nums[i] = nums[j]; nums[j] = temp; } } } foreach(int res in nums) { Console.WriteLine(res); } } } }
run
|
edit
|
history
|
help
0
Intuit // C# // listing_4.4 (StreamReader // output.txt + Convert/Parse)
Problem: on_off
DN3
contraseña
asxasxscdf
Program to implement RamaKrishna
Kz
Sandeep Chandra Bose
Main4-4
test