Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
rangeofset
//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) { int temp; int max = 1; int min = 1; int [] arr = { 1,2,3,4,5,6,7,8,9}; for (int i = 0;i <arr.Length;i++) { if (arr[i] > max ) { max = arr[i]; } else if (arr[i] < min) { min = arr[i]; } } Console.WriteLine(min); Console.WriteLine(max); Console.WriteLine(max-min); } } }
run
|
edit
|
history
|
help
0
Intuit // C# // Lecture_4 // Laba_#1
Brainf*ck interpreter
dairkoos
a
Selection Sort
asxsdxsd
Timer1
Plt-D v.0.8.1
Simple Selection Sort
Side 1