Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
FindSmallest
//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 FindSmallest(int [] arr) { int min = arr[0]; for(int i = 1 ;i<arr.Length;i++) { if (arr[i]<min) { min = arr[i]; } } Console.WriteLine(min); } public static void Main(string[] args) { int [] arr = { 4,77,8,23,2,-89,5,8,3}; FindSmallest(arr); //Console.WriteLine("Hello, world!"); } } }
run
|
edit
|
history
|
help
0
1
ray's 2nd test
sdgsdhsdhs
StringFormatting
Arrays Solved
First Test With Coder - 3 digit number into digits
Test
circl
gfrsdfdfvgh
BankAccount