Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
1
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { string userInput; int GradeNumber; Console.WriteLine ("Enter the number you want to find"); userInput = Console.ReadLine(); GradeNumber = Convert.ToInt32(userInput); Console.WriteLine("You entered {0}",GradeNumber); int[] grades = { 25, 35, 45, 55, 65 }; bool found = false; for (int i = 0; i < grades.Length; i++) { if (GradeNumber == grades[i]) { found = true; break; } } if (found == true) { Console.WriteLine ("This number is found"); } else { Console.WriteLine ("This number is NOT found"); } } } }
run
|
edit
|
history
|
help
0
EqualityComparer
Enums
Just tries to add/remove items to the list
value tuple
Singleton Example
Demo
a
Linked list solution with remove
Out reference example
DateTime