Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
[REDACTED] database V0.1.6
//Microsoft (R) Visual C# Compiler version 3.4.0-beta4-19562-05 (ff930dec) //Copyright (C) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Wxlfiesdatabase { public static void Main() { { string username, password; int ctr = 0; Console.Write("\n\n Diegos's stuff\n"); Console.Write(" Enter username and password\n"); Console.Write("------------------------------------------------------\n"); do { Console.Write("Input a username: "); username = Console.ReadLine(); Console.Write("Input a password: "); password = Console.ReadLine(); if(username != "user" || password != "pass") ctr++; else ctr=1; } while((username != "user" || password != "pass") && (ctr != 3)); if (ctr == 3) Console.Write("\nfailed Try later!\n\n"); else Console.Write("\nThe password entered successfully!\n\n"); string myText="Loading database..."; for(int i=0;i<myText.Length;i++) { Console.Write(myText[i]); System.Threading. Thread.Sleep(50); } Console.Clear(); Console.WriteLine("Sucsessfully loaded database"); Console.WriteLine("What will it be today?"); Console.WriteLine("userinput1:"); Console.WriteLine("load1?"); { if(PromptConfirmation("Would you like to load list1?")) { Console.WriteLine("Avi list 1"); Console.WriteLine("======================"); List<string> Avi = new List<string>(5); Avi.Add("Avali: 468757456456456"); Avi.Add("Racoon: 43453453453534"); Avi.Add("Awatter: 4534346634646"); Avi.Add("Proto: 32523534346346"); Avi.Add("Wicker: qqw23423452355"); Avi.Add("Nardo: 3253523525255"); foreach (string id in Avi) Console.WriteLine(id); } } bool PromptConfirmation(string confirmText) { Console.Write(confirmText + " [y/n] : "); ConsoleKey response = Console.ReadKey(false).Key; Console.WriteLine(); return (response == ConsoleKey.Y); } } } }
run
|
edit
|
history
|
help
0
animal
Find the sum of squares for prime numbers of the form (4k + 1).
Intuit // C# // listing_4.5 (Math. /Pow /Sin)
Determine if a string has all unique characters.
xml into dictionary
Code challenge: Integer Comparison - Overkill - Composite Function
Fórum GroupBy ➡ Sum & Aggregate customers' names
ss
ExtensionDateTime
HourCouter