Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
lala
//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 count=0; int searchnum=Int32.Parse(Console.ReadLine()); int arraylen=Int32.Parse(Console.ReadLine()); int [] array=new int[arraylen]; for(int i=0;i<arraylen;i++) { array[i]= Int32.Parse(Console.ReadLine()); if(array[i]==searchnum) {count++;} } if (count>0) Console.WriteLine("Number Found"); else Console.WriteLine("Number Not Found"); } } }
run
|
edit
|
history
|
help
0
code exple
stackoverflow_25444818
C# virtual dispose
diagonal
sample
a6
Lotto35Generator
Tarkov Time
asdxasxasdf
Generic Type Foreach and Exceptions